Quality Center / ALM Practitioners Forum
cancel

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

ksix
Contributor.

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
Ramesh35
Honored 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
ksix
Contributor.

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

Hi Ramesh,

 

Please see attached.

 

Thanks,

Adam

ksix
Contributor.

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.
Highlighted
ksix
Contributor.

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.