Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Getting URL invalid error when trying to GET a Query in JAVA

When i try to access the belwo query from Poster to retrive the folder of the artifact i get the expected result but when i try to do the same programmatically , i am getting invalid URL error :-

Query :-
  String queryParam3 = "&oslc.prefix="
    + URLEncoder.encode("dcterms=<http://purl.org/dc/terms/>",
      "UTF8")
    + ","
    + URLEncoder.encode("oslc=<http://open-services.net/ns/core#>",
      "UTF8")
    + ","
    + URLEncoder.encode("nav=<http://com.ibm.rdm/navigation#>",
      "UTF8")
    + ","
    + URLEncoder.encode("rrmNav=<http://com.ibm.rdm/navigation#>",
      "UTF8")
    + "&oslc.select=" + URLEncoder.encode("dcterms:title", "UTF8") +

    "&oslc.where=" + URLEncoder.encode("dcterms:title=", "UTF8")
    + "%22" + URLEncoder.encode(deliverableType, "UTF8") + "%22"
    + "&oslc.where=" + URLEncoder.encode("nav:parent=<", "UTF8")
    + URLEncoder.encode(templateFolderServiceURI, "UTF8") + ">";

Getting error while executing the above query.Maybe the issue is with the two oslc:where condition used.

0 votes



One answer

Permanent link
Hi,

I just tested the query provided and it works fine. Remember that title must fully match the title of the artifacts ( title does not support partial search ). I would suggest trying to change title for a different condition and test.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,942

Question asked: Feb 22 '13, 4:01 a.m.

Question was seen: 4,714 times

Last updated: Feb 22 '13, 4:07 p.m.

Confirmation Cancel Confirm