Invalid links section for get access token

Bug #1279496 reported by Steve Martinelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Sergey Nuzhdin

Bug Description

Currently, when getting a single access token:

{
    u'access_token': {
        u'authorizing_user_id': u'53965ee69aa145128a1e91f424745cfe',
        u'links': {
            u'self': u'http: //localhost: 5000/v3/access_tokens/aecec537d2634285a506299cc49a9b32',
            u'roles': u'http: //localhost: 5000/v3/users/53965ee69aa145128a1e91f424745cfe/OS-OAUTH1/access_tokens/aecec537d2634285a506299cc49a9b32/roles'
        },
        u'expires_at': u'2014-02-13T20: 05: 53.011663Z',
        u'consumer_id': u'63e7c900ff4047148bf748999602de33',
        u'project_id': u'777527ead8084667890a362512c9a2d1',
        u'id': u'aecec537d2634285a506299cc49a9b32'
    }
}

Note that the self portion should have: /users/$user_id/OS-OAUTH1

The link for a listing seems to be fine:
{
    u'access_tokens': [
        {
            u'authorizing_user_id': u'c5acd8824d804550a55da5ca3a33dfee',
            u'links': {
                u'self': u'http: //localhost: 5000/v3/access_tokens/5d0084cd834c4ccba51a2349448f9dc7',
                u'roles': u'http: //localhost: 5000/v3/users/c5acd8824d804550a55da5ca3a33dfee/OS-OAUTH1/access_tokens/5d0084cd834c4ccba51a2349448f9dc7/roles'
            },
            u'expires_at': u'2014-02-13T20: 07: 44.097317Z',
            u'consumer_id': u'c57ea70185a240b8bb09b993e9c5d07c',
            u'project_id': u'e75b5f3d9ca8432c9527609d7aea7e01',
            u'id': u'5d0084cd834c4ccba51a2349448f9dc7'
        }
    ],
    u'links': {
        u'self': u'http: //localhost: 5000/v3/users/c5acd8824d804550a55da5ca3a33dfee/OS-OAUTH1/access_tokens',
        u'next': None,
        u'previous': None
    }
}

Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Medium
status: New → Triaged
Sergey Nuzhdin (ipaq-lw)
Changed in keystone:
assignee: nobody → Sergey Nuzhdin (ipaq-lw)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/109650
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=8c8f43c90f84277665b43c8b7cf7accee1eb541c
Submitter: Jenkins
Branch: master

commit 8c8f43c90f84277665b43c8b7cf7accee1eb541c
Author: Sergey Nuzdhin <email address hidden>
Date: Fri Jul 25 18:08:29 2014 +0200

    Fix invalid self link in get access token

    When getting a single access token, the `self` link didn't contain user section.
    This commit fixes the url by overriding the method that generates the self
    referential links and adds corresponding test.

    Change-Id: I366ee2d691008b6b7412adb8cf95179129310728
    Closes-Bug: #1279496

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-3 → 2014.2
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.