It's all about the answers!

Ask a question

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


S C (131) | asked Jun 23 '21, 9:03 a.m.

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


Comments
Ian Barnard commented Jun 23 '21, 1:18 p.m. | edited Jun 23 '21, 1:19 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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 to post your answer.