Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-158

Linode driver doesn't decode compressed responses

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.1
    • Component/s: Compute
    • Labels:
      None

      Description

      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.

      1. issue158.patch
        0.9 kB
        Ben Agricola

        Activity

        Hide
        ben.agricola Ben Agricola added a comment -

        Quick patch to fix this

        Show
        ben.agricola Ben Agricola added a comment - Quick patch to fix this
        Hide
        kami Tomaz Muraus added a comment -

        Merged into trunk, thanks.

        Show
        kami Tomaz Muraus added a comment - Merged into trunk, thanks.

          People

          • Assignee:
            Unassigned
            Reporter:
            ben.agricola Ben Agricola
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development