Re: HP ALM 11 - REST API - Defect Check Out 404 Error on HTTP POST (497 Views)
Reply
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 1 of 5 (639 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).

Valued Contributor
Ramesh35
Posts: 43
Registered: ‎12-17-2013
Message 2 of 5 (603 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
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 3 of 5 (573 Views)

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

[ Edited ]
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 4 of 5 (529 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.
Occasional Collector
ksix
Posts: 4
Registered: ‎10-18-2011
Message 5 of 5 (497 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.

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.