Advise to Query Requirement in RM-Project (part of a Global Configuration)
Hi, |
Accepted answer
Ian Barnard (2.0k●6●13)
| answered Apr 06 '21, 5:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 07 '21, 9:32 a.m. Hi
In your query URL the HTTP query string parameters aren't specified correctly. I think the reference for this is https://tools.ietf.org/html/rfc3986#section-3.4
You have:
Which split into URL (the bit before the ?) and query parameters (first parameter is at the ?, subsequent parameters all must start with &) is:
?oslc.query=true
&projectURL=https%3A%2F%2Fx1.x2.x3.x4%2Frm%2Fprocess%2Fproject-areas%2F_u9BacHJ7EeuYaNFaR904Vg
&oslc.prefix=dcterms%3D%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3Eoslc.select=dcterms%3Atitleoslc.where=dcterms%3Aidentifier%3D13289
Removing the parameter value encoding this is:
?oslc.query=true
&oslc.prefix=dcterms=<http://purl.org/dc/terms/>oslc.select=dcterms:titleoslc.where=dcterms:identifier=13289
You can see that the oslc.select and oslc.where parameters don't start with &
I'd expect this to look like:
?oslc.query=true
&oslc.prefix=dcterms=<http://purl.org/dc/terms/>
&oslc.select=dcterms:title
&oslc.where=dcterms:identifier=13289
When the parameter values are encoded these are:
?oslc.query=true
&projectURL=https%3A%2F%2Fx1.x2.x3.x4%2Frm%2Fprocess%2Fproject-areas%2F_u9BacHJ7EeuYaNFaR904Vg
&oslc.prefix=dcterms%3D%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E
&oslc.select=dcterms%3Atitle
&oslc.where=dcterms%3Aidentifier%3D13289
And reassembled into a URL the query URL should be:
ALSO you must provide the configuration URL using a header Configuration-Context on the GET, with the value of the config URL.
HTH
Ian
magnus Elfving selected this answer as the correct answer
Comments
magnus Elfving
commented Apr 08 '21, 3:48 a.m.
Thanks Ian!
You are right, I've got a valid response from the server.
Regards
Magnus
|
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.