HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST (427 Views)
Reply
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 1 of 5 (427 Views)

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).

Please use plain text.
Valued Contributor
Ramesh35
Posts: 26
Registered: ‎12-17-2013
Message 2 of 5 (391 Views)

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
Please use plain text.
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 3 of 5 (361 Views)

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

[ Edited ]
Please use plain text.
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 4 of 5 (317 Views)

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.
Please use plain text.
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 5 of 5 (285 Views)

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.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation