auth_token middleware: global name 'self' is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Dan Prince |
Bug Description
Using the latest version of keystone Essex: 3e3f239538bcafc
I'm seeing the following exceptions when using the auth token middleware:
2011-12-07 02:51:12 DEBUG [eventlet.
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
claims = self._verify_
File "/usr/lib/
cached_claims = self._cache_
NameError: global name 'self' is not defined
Full stack trace here:
Changed in keystone: | |
status: | New → In Progress |
assignee: | nobody → Dan Prince (dan-prince) |
Changed in keystone: | |
milestone: | none → essex-2 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | essex-2 → 2012.1 |
I think this should fix it:
--- a/keystone/ middleware/ auth_token. py middleware/ auth_token. py object) : d()(env,
start_ response)
+++ b/keystone/
@@ -393,8 +393,7 @@ class AuthProtocol(
return HTTPUnauthorize
- @staticmethod claims( self, env, claims):
- def _verify_claims(env, claims):
+ def _verify_
Testing now...