You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Paul Tiplady (JIRA)" <ji...@apache.org> on 2016/07/12 16:57:20 UTC

[jira] [Created] (LIBCLOUD-835) Malformed auth token causes fatal exception in Google Storage driver

Paul Tiplady created LIBCLOUD-835:
-------------------------------------

             Summary: Malformed auth token causes fatal exception in Google Storage driver
                 Key: LIBCLOUD-835
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-835
             Project: Libcloud
          Issue Type: Bug
            Reporter: Paul Tiplady
            Priority: Critical


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:

{code}
$ 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}
{code}

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

Environment:
Python 3.4.4 
apache-libcloud==1.0.0



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