It's all about the answers!

Ask a question

OSLC-RM updating links works but not attributes


EclipseTalk . (32736161) | asked Jul 22 '15, 7:28 p.m.
edited Jul 22 '15, 7:29 p.m.
Hello,
I'm having an issue when I update an attribute via OSLC-RM apis. I don't get any errors message (200 is returned). I can add a link to a requirement but I cannot update an attribute of type enumeration.

Here are the steps used:
  • GET the resource I want to update, with header in the request: 
    • OSLC-Core-Version=2.0 
    • Accept=application/rdf+xml 
  • It returns the rdf+xml content and some headers. 
  • Then do a PUT to the resource using following information returned in step one : 
    • Add headers : 
      • OSLC-Core-Version=2.0 
      • Accept=application/rdf+xml 
      • Content-type=application/rdf+xml
      • From the headers returned in GET, get the value of header "Etag" and add it to a If-Match header.
  • Modify the rdf+xml content received and add it to the body of the put request.
The requirement attribute is not updated. If I run the GET and PUT in RESTClient in Firefox it works.
How can I debug this? Could anyone share any info?
I'm getting close, that's the last part I'm missing.
Thanks in advance for your help.

One answer



permanent link
Stef van Dijk (2.0k179) | answered Jul 23 '15, 8:11 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hello,

You did not mention which version of RM you are using, but I suspect you are experiencing the following APAR:
OSLC PUT WITH ENUMERATED ATTRIBUTES SHOWS SUCCESS BUT RESULTS IN NO CHANGE (PI36708)

Please see the following work item for more details:
OSLC PUT stops working (95525)

Comments
EclipseTalk . commented Jul 23 '15, 8:17 a.m.

 Thanks for your reply. I'm using RM 4.0.6 with OSLC-RM 2.0.


Stef van Dijk commented Jul 23 '15, 8:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Unfortunately that particular defect was fixed in the 6.0 release and is also available in 5.0.2 iFix004.


EclipseTalk . commented Jul 23 '15, 8:32 a.m.

 Thank you for your reply, not the outcome I was looking for but at least now I know what's wrong.

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.