Clearquest 7.1.2.1 OSLC Query Syntax / Usage
Trying to query against Clearquest via OSLC and running into limitations that I can't seem to find documentation on.
My questions are:
HTTP GET query used:
Returns the following error:https://<server>/cqweb/oslc/repo/<database>/db/HCSDM/record?rcm.type=<type>&oslc_cm.properties=id&oslc_cm.where=Keyword=<value>
<Error xmlns="http://open-services.net/xmlns/cm/1.0/" xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<message>
CRRCM9997E: At least one of the following filters must be specified: rcm.name oslc_cm.query
</message>
<statusCode>403</statusCode>
</Error>
1) Is this a known limitation of the technology (haven't found documentation supporting either yes or no) or is this a "self-imposed" limitation of this particular Clearquest deployment (the management of which I have no control over2) Is it possible to use oslc.query to match on multiple terms? Standard operators like "or" and "and" do not seem to be honored.
3 answers
I think the problem is you are using "record" instead of "query". You can see some examples here.
Which OSLC version are you trying to use? It seems that you mix V1 and V2 together - the URL is in V1 format but oslc_cm.where is a V2 operator. You can set the parameter OSLC-Core-Version to either 1.0 or 2.0 in the HTTP Request Header to specify which version you are using. Once it is determined, you can check either specification to complete the OSLC request.
V1: https://jazz.net/wiki/bin/view/Main/RcmRestCmApi
V2: https://jazz.net/wiki/bin/view/Main/CqOslcV2
V1: https://jazz.net/wiki/bin/view/Main/RcmRestCmApi
V2: https://jazz.net/wiki/bin/view/Main/CqOslcV2