Failed to working with RTC 4.0 to update work item.
Hi,
I have some codes using REST API and OSLC v1 CM spec that I can query/retrieve/create work items. But the codes supporting partially update work item which are working with RTC server 2.0 and 3.0 are no longer working with RTC 4.0 server with return code 412. I'm confused with the return code since the specified work item has not been changed at all and the ETag is properly set in the request header of update command.
Is this a known problem and/or how do I work around this issue? Thanks for help.
Winson
I have some codes using REST API and OSLC v1 CM spec that I can query/retrieve/create work items. But the codes supporting partially update work item which are working with RTC server 2.0 and 3.0 are no longer working with RTC 4.0 server with return code 412. I'm confused with the return code since the specified work item has not been changed at all and the ETag is properly set in the request header of update command.
Is this a known problem and/or how do I work around this issue? Thanks for help.
Winson
2 answers
Hello,
I guess that with RTC 4.0, you should start implementing OSLC v2 spec:
https://jazz.net/library/article/1001
Thanks.
Eric.
Comments
But we also need to support RTC 2.0 and 3.0. I wonder if OSLC v2.0 spec is supported by RTC 2.0 and 3.0.
Thanks.
Winson
I would say:
- RTC 2 and 3 --> OSLC v1
- RTC 4 --> OSLC v2
Thanks
Hi Eric,
By following the instructions of this v2 wiki, I still got 412 response code from RTC 4.0 server. Do you know if there is any server log that I may figure out more details of error?
BTW, do you happen to have the wiki that specifies the version of RTC and its supported version of OSLC?
Thanks a lot for your help.
Winson
Hello,
as per your question:
Q: do you happen to have the wiki that specifies the version of RTC and its supported version of OSLC?
A: no
Q: Do you know if there is any server log that I may figure out more details of error?
A: 412 seems to be a pure Client error, you may however check RTC server log (ccm.log), or use Firefox REST Client - https://addons.mozilla.org/en-US/firefox/addon/restclient/
or Poster - https://addons.mozilla.org/de/firefox/addon/poster/
Also found the following information in some private record we have:
For OSLC_CM 2.0, you have to use Accept: application/rdf+xml and OSLC-Core-Version: 2.0
For OSLC_CM 1.0, you have to use Accept: application/x-oslc-cm-change-request+xml
For OSLC_CM 1.0, you have to use Accept: application/x-oslc-cm-change-request+xml
Hope it helps.
Eric.