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

HTTP Status Code 410(GONE) when trying to retrieve artifact through REST Client (OLSC API)

I have a few questions that may be related to the same issue:


I currently have a bunch of requirements that are in a global configuration that are within a change set, the change set has not been delivered. 

I am using the OSLC API to try and retrieve these artifacts: 
when i run this query, I return every artifact within the module:

https://jazz.server.com/rm/views?oslc.query=true&projectURL=httpsjazz.server.com/process/project-areas/_-xxxxx"
&oslc.select=*

Which is great but I only need a specific set of modules within a folder, I used the Folder Query to find the corresponding folder that the requirements are in and run a Query using the folder as the parent I get a GONE.ERROR. from the server.

So to investigate further, I went into DNG and navigated to the folder with the requirements, got the URL and posted into my REST client, which returned, a list of all the artifacts with the following structure:
when I copy that URI into the REST Client I get a 410 (GONE)

Has anyone else received a gone status code?  Could it somehow be related to the change set not being delivered? 

0 votes



One answer

Permanent link
It looks like you have missed the configuration context when doing the GET request for this particular artifact's URI.

You need to set the HTTP header "Configuration-Context: https://jazz.server.com/rm/cm/changeset/_xxxxx"
or append the URL query "oslc_config.context=https://jazz.server.com/rm/cm/changeset/_xxxxx".

0 votes

Your answer

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
× 12,016
× 7,489
× 1,699

Question asked: Nov 15 '18, 4:09 p.m.

Question was seen: 3,878 times

Last updated: Nov 21 '18, 11:37 a.m.

Related questions
Confirmation Cancel Confirm