Specifying an authurl without a version string gives unhelpful error
Bug #822940 reported by
Jay Pipes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Spent a long time today trying to understand why a simple swift.common.
'NoneType' object has no attribute 'find'
If you pass in an authurl like: auth.api.
Reading the Cloud Files API docs gives the impression that the auth URL is auth.api.
Cheers,
jay
Changed in swift: | |
milestone: | none → 1.6.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Mon, Aug 8, 2011 at 3:52 PM, Jay Pipes <email address hidden> wrote:
> Public bug reported: client. get_account( ) was raising: rackspacecloud. com, the Swift rackspacecloud. com. With swauth,
>
> Spent a long time today trying to understand why a simple
> swift.common.
>
> 'NoneType' object has no attribute 'find'
>
> If you pass in an authurl like: auth.api.
> client produces the above unhelpful error message.
>
>
This is the result of a change in auth.api.
or tempauth, this should raise a client error:
In [1]: from swift.common.client import get_auth
In [2]: get_auth('http://<removed.stg.url>', 'asdf', 'asdf') ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
-------
ClientException Traceback (most recent call last)
/home/clayg/ workspace/ swift/trunk/ swift/common/ <ipython console> in
<module>()
/home/clayg/ workspace/ swift/trunk/ swift/common/ client. pyc in get_auth(url, conn.host, http_port= conn.port, parsed. path, http_status= resp.status, resp.reason) 'x-storage- url')
user, key, snet)
188 http_host=
189 http_path=
--> 190 http_reason=
191 url = resp.getheader(
192 if snet:
ClientException: Auth GET failed: http:// auth.stg. swift.racklabs. com:80 404
Not Found
In [3]: get_auth('https:/ /api.mosso. com', 'asdf', 'asdf')
Out[3]: (None, None)
In [4]: