Odd behavior of oslc.select=* in OSLC query
Hello everyone.
I'm trying to retrieve all the information from a single workitem using OSLC. I've tried the following query in RTC 4.0.1, 4.0.5 and 4.0.6:
https://<server>:<port>/jazz/oslc/contexts/_3B5Qbr6MEeGj86YFkos_nR/workitems?oslc.where=dcterms:identifier="18552"&oslc.select=*
The result is what I expected: a RDF response containing every property of the workitem which identifier is "18552" (identifier, type, plannedFor, ...), and a property "oslc:totalCount" set to "1". Working as expected.
Now, trying the same query (with different project area and different ID, of course) in another 4.0.1 server and I just get the following result:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:oslc="http://open-services.net/ns/core#" > <rdf:Description rdf:about="https://<server>:<port>/jazz/oslc/contexts/_o9yuus5GSdGj867hJss_nR/workitems?oslc.where=dcterms:identifier=%2237993%22&oslc.select=*"> <dcterms:title>Workitems</dcterms:title> <oslc:totalCount>1</oslc:totalCount> <rdf:type rdf:resource="http://open-services.net/ns/core#ResponseInfo"/> </rdf:Description> <rdf:Description rdf:about="https://<server>:<port>/jazz/oslc/contexts/_o9yuus5GSdGj867hJss_nR/workitems"> <rdfs:member rdf:resource="https://<server>:<port>/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/37993"/> </rdf:Description> </rdf:RDF>
The server is providing a proper but incomplete response. It's like as the wildcard of the 'oslc.select=*' parameter is being ignored. When I change the wildcard for single parameters (i.e. 'oslc.select="dcterms:identifier"'), the response is including it as expected, but wildcard is not working at all.
Does anyone know the reason of this odd behavior? Some server configuration parameter maybe?
Thank you very much for your help.
showing 5 of 6
show 1 more comments
|
Be the first one to answer this question!
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.
Comments
Although the RDF looks to be correctly formatted, the content does not look correct (apart from the incompleteness). It seems that the work item cannot be queried. What if you GET the work item directly using OSLC?
https://<server>:<port>/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/37993
Hello, Donald.
Hi Daniel,
It seems that the problem is related to something particular in the environment which we cannot identify yet. You can enable SQL query debugging in the log4j.properties file to see how the CCM server interprets the OSLC query in both the working and problematic environments. It can be quite time-consuming going through the log files though.
Another thing you may try, which may not be relevant at all, is to move "oslc.select=" to the middle of the URI so that the OSLC URI does not end with the "" sign. I once had some nasty problems with such URI, not OSLC-related though.
Hello, Donald.
You could probably try oslc.properties=*, which too should give you similar result.
Hi, Sudarshan,