You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Matt Finucane (JIRA)" <ji...@apache.org> on 2016/10/25 19:30:58 UTC

[jira] [Created] (LIBCLOUD-866) Response with 202 Accepted is flagged as an unsuccessful request

Matt Finucane created LIBCLOUD-866:
--------------------------------------

             Summary: Response with 202 Accepted is flagged as an unsuccessful request
                 Key: LIBCLOUD-866
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-866
             Project: Libcloud
          Issue Type: Improvement
          Components: Core
         Environment: This issue could happen under any environment.
            Reporter: Matt Finucane


If you look inside the definition for the success function inside libcloud/common/base.py you will see that it only returns true for [httplib.OK, httplib.CREATED] with the relevant status codes of 200 and 201.

I am working on a driver that also returns 202 Accepted, and as it stands, this would be flagged as a failure. 

I forked from the main repository and corrected the issue by including httplib.ACCEPTED.

When I finish work on this driver, should I push that change upstream too? Without it, my driver will not work for most requests. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)