It's all about the answers!

Ask a question

Clearquest 7.1.2.1 OSLC Query Syntax / Usage


Rich Steenwyk (622) | asked Oct 09 '13, 4:38 p.m.
Trying to query against Clearquest via OSLC and running into limitations that I can't seem to find documentation on.
HTTP GET query used:
https://<server>/cqweb/oslc/repo/<database>/db/HCSDM/record?rcm.type=<type>&oslc_cm.properties=id&oslc_cm.where=Keyword=<value>
	
Returns the following error:
<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>

My questions are:
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 over
2) 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



permanent link
Donald Nong (14.5k614) | answered Oct 09 '13, 8:54 p.m.
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

permanent link
Rich Steenwyk (622) | answered Oct 09 '13, 6:10 p.m.
Per OSLC spec "and" operator works in this style of record filtering, but the "or" operator is not supported.

permanent link
Matthew Alexander (18126) | answered Oct 09 '13, 4:52 p.m.
JAZZ DEVELOPER
I think the problem is you are using "record" instead of "query".  You can see some examples here.

Comments
Rich Steenwyk commented Oct 09 '13, 6:02 p.m.

"/query/"  appears to be solely for executing a pre-defined query.   To clarify my original question, I desire to perform so-called "on-the-fly" querying -- filtering all records by certain criteria.

Your answer


Register or 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.