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

Problem with OSLC in Doors to get Requirements from a Folder.

Hello,

I'm trying to create a consumer application for Doors Next Generation.
I want to create a tree view so that the user can click on a folders to see the requirements inside.

I'm trying to create the OLSC query URL which can get the requirements in a folder the but with no luck.
I have read the article: https://jazz.net/library/article/1197
but I'm missing something since every time I run the query, I get the error message is:

Error when converting: oslc.query=true& oslc.prefix=oslc& oslc.select=dcterms:title& oslc.select=dcterms:description& oslc.select=oslc:instanceShape& oslc.where=nav:parent com.ibm.oslc.query.parser.select.ParseException: Invalid prefix definition: oslc



My query base is 
https://airbus.agi.com:9443/rm/views?oslc.query=true&projectURL=https://airbus.agi.com:9443/rm/process/project-areas/_krlZkgR6EeW1urK_Hs682g


My folder url is
https://airbus.agi.com:9443/rm/folders/_rYA7EiVYEeWzIKG-AepNow 


As I understand, all I need to do is to add the following to the query base:
&oslc.prefix=oslc=<http://open-services.net/ns/core%23>,dcterms=<http://purl.org/dc/terms/>,nav=<http://com.ibm.rdm/navigation%23>&oslc.select=dcterms:title,dcterms:description,oslc:instanceShape&oslc.where=nav:parent=<https://airbus.agi.com:9443/rm/folders/_rYA7EiVYEeWzIKG-AepNow>


However,When I do an HTTP get on the following, I get the error message shown above. Could someone shed light on what is wrong with my statement?
This is what I'm posting

https://airbus.agi.com:9443/rm/views?oslc.query=true&projectURL=https://airbus.agi.com:9443/rm/process/project-areas/_krlZkgR6EeW1urK_Hs682g&oslc.prefix=oslc=<http://open-services.net/ns/core%23>,dcterms=<http://purl.org/dc/terms/>,nav=<http://com.ibm.rdm/navigation%23>&oslc.select=dcterms:title,dcterms:description,oslc:instanceShape&oslc.where=nav:parent=<https://airbus.agi.com:9443/rm/folders/_rYA7EiVYEeWzIKG-AepNow>

Thanks in advance.
Ian









0 votes



One answer

Permanent link
Yes it _should_ work. Constructing the URL is quite tricky and I suggest you escape the characters whenever possible to maintain the clear ?param=value&param=value format. Below is the URL that work in my CLM 5.0.2 environment.

Another tip is to check the rm.log file as it will show what the parameters are when the error occurs and you can adjust accordingly.

2 votes

Comments

I am using 6.0.1 RM server and I tried to replicate same query, but I am getting following exception:

oslc.where=nav:parent=&lt;https://example.com:9443/rm/folders/_pCsHIeuBEeW8KYg-oqs26A&gt;&amp;
oslc.select=*
java.lang.RuntimeException: Undefined namespace prefix: nav (More info found at entry [146e8a858b4f5d5a] in the RM application server log)</err:detailedMessage>
    <err:errorMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Bad Request</err:errorMessage>
    <err:errorStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#long"
    >400</err:errorStatus>

Am i missing something.

Yes, you missed the "nav" namespace specification. It's the last of the three namespaces defined in "oslc.prefix" in my example above.

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,930
× 515

Question asked: Jul 21 '15, 4:03 a.m.

Question was seen: 5,365 times

Last updated: Oct 26 '22, 10:19 a.m.

Confirmation Cancel Confirm