It's all about the answers!

Ask a question

updating RRC articfact using curl cmd


Binoy D'costa (9532737) | asked Apr 19 '13, 1:10 p.m.
Hi,

I have this curl cmd to update an artifact in RRC:

curl -s -D - -k  -b ~/.jazzcookies -H \'If-Match: \"_C-NbgahsEeKkfY4h6KgkBA\"\' -H \"Content-Type: application/rdf+xml\" -H \"Accept: application/rdf+xml\" -H \"OSLC-Core-Version: 2.0\" -X PUT --data-binary \"\@$ReqType.xml\" \"$updateReqQueryURL\""

$updateReqQueryURL is 'https://clm-host/rm/resources/_KJ60caOvEeKOxKDk7re7Vg"

When i run it, I get the following HTTP response:

Result: HTTP/1.1 100 Continue
Content-Length: 0
Date: Fri, 19 Apr 2013 16:38:44 GMT
Server: WebSphere Application Server/7.0

HTTP/1.1 200 OK
Date: Fri, 19 Apr 2013 16:38:44 GMT
Server: WebSphere Application Server/7.0
Content-Type: application/rdf+xml
OSLC-Core-Version: 2.0
Content-Language: en-US
Transfer-Encoding: chunked


But I don't see the artifact getting updated. In the updated xml file, I'm just updating the Title along with all the other original contents:

From:

<dc:title rdf:parseType="Literal">Touch screen</dc:title>


To:

<dc:title rdf:parseType="Literal">Touch screen test</dc:title>

I don't see any error in the server log too.

Appreciate for any suggestions.

Thanks,
Binoy


Comments
Stef van Dijk commented Apr 19 '13, 4:35 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

This is a bit of a total guess (I'm more familiar with using HttpRequester to make these sorts of changes), but trying using application/xml for the Accept header and I would also suggest setting net.jazz.jfs.owning-context to the url of the artifact's project area to be safe.


Binoy D'costa commented May 07 '13, 11:52 a.m.

Tried with application/xml no progress. what is "net.jazz.jfs.owning-context"? and are you suggesting to add it as a header?


Stef van Dijk commented May 15 '13, 3:35 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

net.jazz.jfs.owning-context is the full url of the project area that contains the resource and yes, it's a header.

BTW, which version of RRC are you using?
You might also try experimenting with either HttpRequester or the rm/rmadmin web ui to try and figure out what might be missing.

Be the first one to answer this question!


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.