Quality Center Support and News
Showing results for 
Search instead for 
Do you mean 

HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST

Highlighted
Occasional Collector

HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST

Hi all,

 

Have a problem with checking out a defect in ALM via the REST API.

 

I can successfully lock the defect, but when I submit the following command:

 

POST http://hpqc/qcbin/rest/domains/test/projects/test/defects/1/versions/check-out

 

with correct headers for ContentType, Accept & Cookie, I still get a HTTP 404 response.

 

Any ideas why? I can do most other actions fine (read defects / lists etc).

4 REPLIES
Trusted Contributor

Re: HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST

Please post your code which you are executing for check out the defect.

Ramesh
Occasional Collector

Re: HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST

[ Edited ]

Hi Ramesh,

 

Please see attached.

 

Thanks,

Adam

Occasional Collector

Re: HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST

It seems to be due to the server not recognising that I am the one who put the lock on the defect.
Occasional Collector

Re: HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST

Okay - made some progress. I have fixed the problem with LOCKED_BY_OTHER, as it required me to pass not just the auth cookie, but the session cookie. Now I'm getting a http 401 when I try to check-out the defect.