You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Ben Agricola (Created) (JIRA)" <ji...@apache.org> on 2012/02/25 16:15:48 UTC

[dev] [jira] [Created] (LIBCLOUD-158) Linode driver doesn't decode compressed responses

Linode driver doesn't decode compressed responses
-------------------------------------------------

                 Key: LIBCLOUD-158
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-158
             Project: Libcloud
          Issue Type: Bug
          Components: Compute
    Affects Versions: 0.8.0
            Reporter: Ben Agricola


After upgrade from 0.7.1 to 0.8.0 calls to the Linode API fail with a MalformedResponseError (Failed to parse JSON). Changes to base.Connection.request() send correct Accept-Encoding headers (making Linode API return compressed data), but common.linode.LinodeResponse overrides common.base.Response.__init__() in which _decompress_response() is called - the response body is never decompressed and fails to json.loads() in common.base.JsonResponse.



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

        

[dev] [jira] [Resolved] (LIBCLOUD-158) Linode driver doesn't decode compressed responses

Posted by "Tomaz Muraus (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus resolved LIBCLOUD-158.
-----------------------------------

    Resolution: Fixed

Merged into trunk, thanks.
                
> Linode driver doesn't decode compressed responses
> -------------------------------------------------
>
>                 Key: LIBCLOUD-158
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-158
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.8.0
>            Reporter: Ben Agricola
>         Attachments: issue158.patch
>
>
> After upgrade from 0.7.1 to 0.8.0 calls to the Linode API fail with a MalformedResponseError (Failed to parse JSON). Changes to base.Connection.request() send correct Accept-Encoding headers (making Linode API return compressed data), but common.linode.LinodeResponse overrides common.base.Response.__init__() in which _decompress_response() is called - the response body is never decompressed and fails to json.loads() in common.base.JsonResponse.

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

        

[dev] [jira] [Updated] (LIBCLOUD-158) Linode driver doesn't decode compressed responses

Posted by "Tomaz Muraus (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus updated LIBCLOUD-158:
----------------------------------

    Fix Version/s: 0.9.1
    
> Linode driver doesn't decode compressed responses
> -------------------------------------------------
>
>                 Key: LIBCLOUD-158
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-158
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.8.0
>            Reporter: Ben Agricola
>             Fix For: 0.9.1
>
>         Attachments: issue158.patch
>
>
> After upgrade from 0.7.1 to 0.8.0 calls to the Linode API fail with a MalformedResponseError (Failed to parse JSON). Changes to base.Connection.request() send correct Accept-Encoding headers (making Linode API return compressed data), but common.linode.LinodeResponse overrides common.base.Response.__init__() in which _decompress_response() is called - the response body is never decompressed and fails to json.loads() in common.base.JsonResponse.

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

        

[dev] [jira] [Closed] (LIBCLOUD-158) Linode driver doesn't decode compressed responses

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus closed LIBCLOUD-158.
---------------------------------

    
> Linode driver doesn't decode compressed responses
> -------------------------------------------------
>
>                 Key: LIBCLOUD-158
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-158
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.8.0
>            Reporter: Ben Agricola
>             Fix For: 0.9.1
>
>         Attachments: issue158.patch
>
>
> After upgrade from 0.7.1 to 0.8.0 calls to the Linode API fail with a MalformedResponseError (Failed to parse JSON). Changes to base.Connection.request() send correct Accept-Encoding headers (making Linode API return compressed data), but common.linode.LinodeResponse overrides common.base.Response.__init__() in which _decompress_response() is called - the response body is never decompressed and fails to json.loads() in common.base.JsonResponse.

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

        

[dev] [jira] [Updated] (LIBCLOUD-158) Linode driver doesn't decode compressed responses

Posted by "Ben Agricola (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Agricola updated LIBCLOUD-158:
----------------------------------

    Attachment: issue158.patch

Quick patch to fix this
                
> Linode driver doesn't decode compressed responses
> -------------------------------------------------
>
>                 Key: LIBCLOUD-158
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-158
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.8.0
>            Reporter: Ben Agricola
>         Attachments: issue158.patch
>
>
> After upgrade from 0.7.1 to 0.8.0 calls to the Linode API fail with a MalformedResponseError (Failed to parse JSON). Changes to base.Connection.request() send correct Accept-Encoding headers (making Linode API return compressed data), but common.linode.LinodeResponse overrides common.base.Response.__init__() in which _decompress_response() is called - the response body is never decompressed and fails to json.loads() in common.base.JsonResponse.

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