It's all about the answers!

Ask a question

Failed to working with RTC 4.0 to update work item.


WenHsin Lee (5194) | asked Mar 19 '13, 8:11 p.m.
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




2 answers



permanent link
Eric Jodet (6.3k5111120) | answered Mar 20 '13, 2:30 a.m.
JAZZ DEVELOPER
 Hello,
I guess that with RTC 4.0, you should start implementing OSLC v2 spec:
https://jazz.net/library/article/1001

Thanks.
Eric.

Comments
WenHsin Lee commented Mar 20 '13, 12:50 p.m.

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


Eric Jodet commented Mar 21 '13, 5:11 a.m.
JAZZ DEVELOPER

 I would say:

- RTC 2 and 3 --> OSLC v1
- RTC 4 --> OSLC v2

Thanks


WenHsin Lee commented Mar 22 '13, 7:33 p.m.

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


permanent link
Eric Jodet (6.3k5111120) | answered Mar 25 '13, 2:14 a.m.
JAZZ DEVELOPER
  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

Hope it helps.
Eric.

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.