← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1156913] Re: V2 to V3 token intermix for unscoped token is broken

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1156913

Title:
  V2 to V3 token intermix for unscoped token is broken

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  To reproduce the problem.

  1) obtain an unscoped token using V2 API
  2) try to validate the token with V3 API and Keystone produces the following stacktrace

  Traceback (most recent call last):
    File "/home/gyee/projects/openstack/keystone/keystone/common/wsgi.py", line 236, in __call__
      result = method(context, **params)
    File "/home/gyee/projects/openstack/keystone/keystone/common/controller.py", line 104, in wrapper
      return f(self, context, **kwargs)
    File "/home/gyee/projects/openstack/keystone/keystone/auth/controllers.py", line 401, in validate_token
      token_ref.get('tenant'))
    File "/home/gyee/projects/openstack/keystone/keystone/auth/token_factory.py", line 231, in recreate_token_data
      project_id = project_ref['id']
  TypeError: 'NoneType' object has no attribute '__getitem__'

  Looks like we are making an assumption that project_ref is always
  valid.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1156913/+subscriptions