Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

410 response while creating artifacts with OSLC REST in DNG version 7.0.2

Hello everyone,


I am trying to create an artifact in DNG using OSLC REST capabilities. I was able to do by following the steps mentioned in this article in DNG for version 6.0.6.
Now, I am trying the same steps in a newer version 7.0.2 but I get an 410 GONE response from the DNG server.

Details of the request made to server:

Action: POST

URL: https://grarrc.ibm.com:9443/rm/requirementFactory?projectURL=https://grarrc.ibm.com:9443/jts/process/project-areas/_zpWqELrZEeG3OKR6fZ1svQ

Payload:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/terms/"
         xmlns:public_rm_10="http://www.ibm.com/xmlns/rm/public/1.0/"
         xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/"
         xmlns:acp="http://jazz.net/ns/acp#" xmlns:rm_property="https://grarrc.ibm.com:9443/rm/types/"
         xmlns:oslc="http://open-services.net/ns/core#" xmlns:nav="http://jazz.net/ns/rm/navigation#"
         xmlns:oslc_rm="http://open-services.net/ns/rm#">
    <rdf:Description rdf:about="">
        <rdf:type rdf:resource="http://open-services.net/ns/rm#Requirement"/>
        <dc:description rdf:parseType="Literal">OSLC Creation Example</dc:description>
        <dc:title rdf:parseType="Literal">OSLC Created Requirement</dc:title>
        <oslc:instanceShape rdf:resource="https://grarrc.ibm.com:9443/rm/types/_0dbyY7rZEeG3OKR6fZ1svQ"/>
        <nav:parent rdf:resource="https://grarrc.ibm.com:9443/rm/folders/_zpWqELrZEeG3OKR6fZ1svQ"/>
    </rdf:Description>
</rdf:RDF>  

</pre>

Headers:
  • Accept = application/rdf+xml  
  • OSLC-Core-Version = 4.0  
  • Content-Type = application/rdf+xml
My question is that am I missing something here or is there a newer or different steps for the version 7.0.2?

Best,
Shruti

0 votes

Comments
Sorry to be a bit vague but I've not tried this recently

However 
  • OSLC-Core-Version = 4.0 
looks wrong - AFAIK you should use 2.0, i.e. 
  • OSLC-Core-Version = 2.0  
Confirm the oslc:instanceShape and nav:parent URLs are correct.

Is this  project configuration-management enabled? If so you *must* use a configuration header with the local configuration URL, and it's possible the projectURL will need to point at the component you're creating the requirement in - not sure about that.


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 479
× 139
× 116
× 24
× 6

Question asked: Jun 23 '21, 9:03 a.m.

Question was seen: 1,195 times

Last updated: Jun 23 '21, 1:19 p.m.

Confirmation Cancel Confirm