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

Malformed auth token causes fatal exception in Google Storage driver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      One of my Django instances has started hitting a libcloud error which is causing a fatal exception, bringing down the instance.

      It looks like libcloud is writing invalid JSON into the auth token, which then causes a JSON parse error when it is subsequently read back in.

      Here's the token that's written:

      $ cat /root/.google_libcloud_auth.<project>
      {"access_token": "<redacted>", "token_type": "Bearer", "expire_time": "2016-07-12T16:45:09Z", "expires_in": 3559}09Z", "expires_in": 3537}
      

      Note the two "expires_in" keys, one with a nonsense value of `3559}09Z"`

      Environment:
      Python 3.4.4
      apache-libcloud==1.0.0

      Attachments

        Issue Links

          Activity

            People

              kami Tomaz Muraus
              paul.tiplady Paul Tiplady
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: