api v2 version returned wrong result

Bug #1458850 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
wangxiyuan

Bug Description

when send an 'GET' REST message to abtain detail informations about api v2,it still return informations about v1.0.
like:
http://10.250.10.3:8776/v1 'GET' ,the result is :

{
    "version": {
        "status": "SUPPORTED",
        "updated": "2014-06-28T12:20:21Z",
        "media-types": [
            {
                "base": "application/xml",
                "type": "application/vnd.openstack.volume+xml;version=1"
            },
            {
                "base": "application/json",
                "type": "application/vnd.openstack.volume+json;version=1"
            }
        ],
        "id": "v1.0",
        "links": [
            {
                "href": "http://10.250.10.3:8776/v1/",
                "rel": "self"
            },
            {
                "href": "http://docs.openstack.org/",
                "type": "text/html",
                "rel": "describedby"
            }
        ]
    }
}

and http://10.250.10.3:8776/v2 'GET' , the result is the same:
{
    "version": {
        "status": "SUPPORTED",
        "updated": "2014-06-28T12:20:21Z",
        "media-types": [
            {
                "base": "application/xml",
                "type": "application/vnd.openstack.volume+xml;version=1"
            },
            {
                "base": "application/json",
                "type": "application/vnd.openstack.volume+json;version=1"
            }
        ],
        "id": "v1.0",
        "links": [
            {
                "href": "http://10.250.10.3:8776/v2/",
                "rel": "self"
            },
            {
                "href": "http://docs.openstack.org/",
                "type": "text/html",
                "rel": "describedby"
            }
        ]
    }
}

wangxiyuan (wangxiyuan)
Changed in cinder:
assignee: nobody → wangxiyuan (wangxiyuan)
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/185570

Changed in cinder:
status: New → In Progress
Changed in cinder:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit 21735a215914006add55ad2ae0d8ced085858821
Author: wangxiyuan <email address hidden>
Date: Tue May 26 20:12:51 2015 +0800

    Fix wrong response with version details

    Now,Version details for API v2 were being reported as v1.

    This patch fixed this bug.

    Change-Id: I9698b33210e7d2f89f8a717d0ad2ada3edb4c391
    Closes-bug:#1458850

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-1 → 7.0.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.