Multiple oslc.where statement in the query
Hi Team
In my query I am trying to use multiple oslc.query statement, example :
Query
Accept: application/rdf+xml
OSLC-Core-Version: 2.0
https://myserver.pl:9443/ccm/oslc/contexts/_HeU8o6FZEeKEFa0gk6Ppqw/workitems?oslc.where=oslc_cm:closed=%22true%22,dcterms:contributor=%22https://myserver.pl:9443/jts/users/bob%22
result :
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc="http://open-services.net/ns/core#" > <rdf:Description rdf:nodeID="A0"> <oslc:message>Wczesne zakończenie</oslc:message> <---- "Early finish" <oslc:statusCode>400</oslc:statusCode> <rdf:type rdf:resource="http://open-services.net/ns/core#Error"/> </rdf:Description> </rdf:RDF>
I would be thankful for any help or additional comment. I already went through the documentation and I am not able to find any example with multiple oslc.where.
Accepted answer
Hi Bartosz,
your query includes a comma whereas is should use a '&' instead:
It should work with: https://myserver.pl:9443/ccm/oslc/contexts/_HeU8o6FZEeKEFa0gk6Ppqw/workitems?oslc.where=oslc_cm:closed=%22true%22&dcterms:contributor=%22https://myserver.pl:9443/jts/users/bob%22
Regards,
Stéphane
your query includes a comma whereas is should use a '&' instead:
It should work with: https://myserver.pl:9443/ccm/oslc/contexts/_HeU8o6FZEeKEFa0gk6Ppqw/workitems?oslc.where=oslc_cm:closed=%22true%22&dcterms:contributor=%22https://myserver.pl:9443/jts/users/bob%22
Regards,
Stéphane