[
https://issues.apache.org/jira/browse/DTACLOUD-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415681#comment-13415681
]
David Lutterkort commented on DTACLOUD-240:
-------------------------------------------
How about we try to follow the redirect on the client's behalf ? If we succeed,
we can send back the 202 as before; if we fail we pass back the 303 and the
client itself can redo the request and analyze what went wrong.
> Return code for vsphere instance reboot has changed from 202 to 200
> -------------------------------------------------------------------
>
> Key: DTACLOUD-240
> URL: https://issues.apache.org/jira/browse/DTACLOUD-240
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud git commit:
> 59960151dac052cfdec63387bce58c14963c849
> rhel 6.2
> Reporter: Ronelle Landy
> Assignee: Michal Fojtik
>
> The following test code now fails when checking the return code for vsphere
> instance reboot:
> // Reboot the instance
> >> respXML = restClient.post( path: '/api/instances/' +
> >> [email protected]() + '/reboot', contentType:
> >> ContentType.XML,headers: [Accept: 'application/xml'])
> >> assert respXML.status == 202
> assert respXML.status == 202
> | | |
> | 200 false
> ie; the return code used to be 202 and now it's 200.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira