KeyError: 'roleRefs' in auth_token.py

Bug #855823 reported by Anthony Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Unassigned

Bug Description

Steps to Repro:
curl -v 'http://192.168.1.50:8774/v1.1/1/servers' -H 'X-Auth-Token: 999888777666' -H 'Accept: application/json'

Actual:
Exception at /dash/1/images/
Internal Server error: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/eventlet/wsgi.py", line 336, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 147, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/pymodules/python2.7/webob/dec.py", line 208, in call_func
    return self.func(req, *args, **kwargs)
  File "/opt/glance/glance/common/wsgi.py", line 113, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/pymodules/python2.7/webob/request.py", line 937, in get_response
    application, catch_exc_info=False)
  File "/usr/lib/pymodules/python2.7/webob/request.py", line 906, in call_application
    app_iter = application(self.environ, start_response)
  File "/opt/keystone/keystone/middleware/auth_token.py", line 162, in __call__
    claims = self._expound_claims(claims)
  File "/opt/keystone/keystone/middleware/auth_token.py", line 282, in _expound_claims
    role_refs = token_info["access"]["user"]["roleRefs"]
KeyError: 'roleRefs'

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/keystone

Reviewed: https://review.openstack.org/517
Committed: http://github.com/openstack/keystone/commit/ceab91b4d34332f6b4033e2837ba0d9f51b28833
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit ceab91b4d34332f6b4033e2837ba0d9f51b28833
Author: Anthony Young <email address hidden>
Date: Wed Sep 21 11:50:37 2011 -0700

    Fixes bug 855823

    Change-Id: I7d030b1922c7df87ec59632255ee47f8ff0c15a7

Changed in keystone:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.