Odd behavior of oslc.select=* in OSLC query
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:
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>
Comments
Donald Nong
May 20 '14, 3:28 a.m.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
1 vote
Daniel Garcia
May 20 '14, 3:53 a.m.Hello, Donald.
Donald Nong
May 20 '14, 11:17 p.m.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.
1 vote
Daniel Garcia
May 21 '14, 3:44 a.m.Hello, Donald.
Sudarshan Rao
May 21 '14, 4:07 a.m.You could probably try oslc.properties=*, which too should give you similar result.
1 vote
Daniel Garcia
May 21 '14, 4:36 a.m.Hi, Sudarshan,