Self value in Link is wrong in GET /OS-REVOKE/events

Bug #1384457 reported by Haneef Ali
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Rodrigo Duarte

Bug Description

There are 2 events in the path

# curl -k -H "X-Auth-Token:SomeToken" http://localhost:35357/v3/OS-REVOKE/events | python -mjson.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 304 100 304 0 0 313 0 --:--:-- --:--:-- --:--:-- 313
{
    "events": [
        {
            "issued_before": "2014-10-22T20:26:14.000000Z",
            "project_id": "f5590b050dc14795b5e8447a223bd696"
        },
        {
            "audit_id": "cAV3qiytQkuzpANJ3CPFRg",
            "issued_before": "2014-10-22T20:29:44.000000Z"
        }
    ],
    "links": {
        "next": null,
        "previous": null,
        "self": "http://localhost:35357/v3/OS-REVOKE/events/events"
    }
}

Changed in keystone:
status: New → Confirmed
Revision history for this message
Rodrigo Duarte (rodrigodsousa) wrote :

Confirmed here (had the same output), the bug is caused by an append of /events in the URL string: https://github.com/openstack/keystone/blob/master/keystone/contrib/revoke/controllers.py#L41

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/130408

Changed in keystone:
assignee: nobody → Rodrigo Duarte (rodrigodsousa)
status: Confirmed → In Progress
Changed in keystone:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

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

commit c3393fb33c7528e092c169e5302544156479db80
Author: Rodrigo Duarte Sousa <email address hidden>
Date: Wed Oct 22 21:49:20 2014 -0300

    Remove string from URL in list_revoke_events()

    The extra string is causing the self URL to be
    "/OS-REVOKE/events/events" instead of just
    "OS-REVOKE/events".

    Change-Id: I3b4e53ffabee5156b2b82b5831cfe23e98527a3a
    Closes-Bug: 1384457

Changed in keystone:
status: In Progress → Fix Committed
Changed in keystone:
milestone: none → kilo-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (feature/hierarchical-multitenancy)

Fix proposed to branch: feature/hierarchical-multitenancy
Review: https://review.openstack.org/138182

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (feature/hierarchical-multitenancy)

Change abandoned by Morgan Fainberg (<email address hidden>) on branch: feature/hierarchical-multitenancy
Review: https://review.openstack.org/138182

Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: kilo-1 → 2015.1.0
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.