version list shows wrong hrefs

Bug #1261849 reported by Cory Stone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Unassigned

Bug Description

If you hit the cinder endpoint directly, you get the version list. The generated hrefs all point to /v1.

cory@cfsyn28:~/devstack$ curl localhost:8776 | python -m json.tool
{
    "versions": [
        {
            "id": "v1.0",
            "links": [
                {
                    "href": "http://localhost:8776/v1/",
                    "rel": "self"
                }
            ],
            "status": "CURRENT",
            "updated": "2012-01-04T11:33:21Z"
        },
        {
            "id": "v2.0",
            "links": [
                {
                    "href": "http://localhost:8776/v1/",
                    "rel": "self"
                }
            ],
            "status": "CURRENT",
            "updated": "2012-11-21T11:33:21Z"
        }
    ]
}

Tags: api
Changed in cinder:
assignee: nobody → Leandro Ignacio Costantino (leandro-i-costantino)
Mike Perez (thingee)
Changed in cinder:
milestone: none → icehouse-2
tags: added: api
Changed in cinder:
status: New → Triaged
Changed in cinder:
assignee: Leandro Ignacio Costantino (leandro-i-costantino) → Swapnil Kulkarni (swapnil.kulkarni)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/67032
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=edc93383f7cd9d055d655a8e345a3efa81b7de5b
Submitter: Jenkins
Branch: master

commit edc93383f7cd9d055d655a8e345a3efa81b7de5b
Author: Swapnil Kulkarni <email address hidden>
Date: Thu Jan 16 13:28:31 2014 +0530

    Updates for version list to show correct references

    Updated views to consider version while creating href.
    Updated fakes to consider version while creating fake href.
    Updated some test cases in v2 api which were using v1 as
    expected output

    Change-Id: Ib05180041309ef75c3718924969bd2354d6d8b3a
    Closes-Bug: #1261849

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: icehouse-2 → 2014.1
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.