keystoneclient throws exception when loading auth_ref dictionary

Bug #1078589 reported by Joseph Heck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
High
Joseph Heck

Bug Description

Keystoneclient auth_ref intialization fails with a auth_ref just previously retrieved:

example:

#!/usr/bin/env python
from keystoneclient import access
from keystoneclient.v2_0 import client

kc = client.Client(
    username='heckj', password='****',
    auth_url='http://localhost:5000/v2.0',
    debug=True)

kc.authenticate(tenant_name='my-project')

cached_token = json.dumps(kc.auth_ref)
print "--"
print "cached token: %s" % cached_token

loaded_token_dict = json.loads(cached_token)
ai = access.AccessInfo(loaded_token_dict)
print "--"
print "ai is %s" % ai
print "ai.scoped is %s" % ai.scoped
print "ai.auth_url is %s" % ai.auth_url

kc2 = client.Client(auth_ref=loaded_token_dict)

Joseph Heck (heckj)
Changed in python-keystoneclient:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/16047

Changed in python-keystoneclient:
assignee: nobody → Joseph Heck (heckj)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/16047
Committed: http://github.com/openstack/python-keystoneclient/commit/1a35545db3aa2af7707928c6169e1908e24c8286
Submitter: Jenkins
Branch: master

commit 1a35545db3aa2af7707928c6169e1908e24c8286
Author: Joe Heck <email address hidden>
Date: Wed Nov 14 05:38:16 2012 +0000

    fixes auth_ref initialization error

    bug 1078589

    * allow client values to be overridden, but use auth_ref if none
      available
    * added tests to match this flow
    * refactored tokens into test_fixtures.py file

    Change-Id: I771a2dee6dedf31d883417d9b4e6e64bbb620f14

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in python-keystoneclient:
milestone: none → 0.2.0
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.