Trying to auth with a bad request reply with a KeyError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Dolph Mathews |
Bug Description
When trying to auth with this :
stack@devstack:~$ curl -i http://
I am getting a key error :
HTTP/1.1 500 Internal Server Error
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 196
Date: Thu, 30 Aug 2012 19:35:23 GMT
{"error": {"message": "An unexpected error prevented the server from fulfilling your request. local variable 'expiry' referenced before assignment", "code": 500, "title": "Internal Server Error"}}
and server log :
(root): 2012-08-30 19:35:23,078 ERROR wsgi __call__ local variable 'expiry' referenced before assignment
Traceback (most recent call last):
File "/opt/stack/
result = method(context, **params)
File "/opt/stack/
auth_
UnboundLocalError: local variable 'expiry' referenced before assignment
(eventlet.
tags: | added: trunk |
Changed in keystone: | |
assignee: | nobody → Adam Young (ayoung) |
Changed in keystone: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in keystone: | |
milestone: | none → grizzly-1 |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | grizzly-1 → 2013.1 |
This stops the 500 explosion and returns a 403 Forbidden.
The request that explodes is 'improperly formatted', at least with regards to keystone/ service. py; which expects a token in the request body specifically, or an auth dict in the format at line 272 in the authenticate method.