yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #65998
[Bug 1705663] [NEW] Wrong href link returned when providing non-existed version in GET version API
Public bug reported:
When calling GET version API with a version that not exist, we returned a list of
correct choices, but the href link is incorrect:
root@kevin-dev:~# curl -g -i -X GET http://10.76.150.17/compute/v2.0 -H "OpenStack-API-Version: compute 2.51" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.51" -H "X-Auth-Token:gAAAAABZcbz3PfBntmI6mpGnnh3y1_uLYGYzZ9ivohMH6ZL2OymLyZkSXfZe-m9PUaGcocKgLsIp2iRHRho_nfF4N-T2erbvT7hzwtyhqBzlNqR5L306QbRfx3wsZmS-0ml0CR2KDa4chVu25ipI7zPUWEpm9GrgYe8BZOKKUVvvHkT442JC8To"
HTTP/1.1 300 Multiple Choices
Date: Fri, 21 Jul 2017 09:08:20 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 473
Content-Type: application/json
Connection: close
{"choices": [{"status": "SUPPORTED", "media-types": [{"base":
"application/json", "type":
"application/vnd.openstack.compute+json;version=2"}], "id": "v2.0",
"links": [{"href": "http://10.76.150.17/compute/v2/compute/v2.0", "rel":
"self"}]}, {"status": "CURRENT", "media-types": [{"base":
"application/json", "type":
"application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1",
"links": [{"href": "http://10.76.150.17/compute/v2.1/compute/v2.0",
"rel": "self"}]}]}
** Affects: nova
Importance: Undecided
Assignee: Zhenyu Zheng (zhengzhenyu)
Status: New
** Changed in: nova
Assignee: (unassigned) => Zhenyu Zheng (zhengzhenyu)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1705663
Title:
Wrong href link returned when providing non-existed version in GET
version API
Status in OpenStack Compute (nova):
New
Bug description:
When calling GET version API with a version that not exist, we returned a list of
correct choices, but the href link is incorrect:
root@kevin-dev:~# curl -g -i -X GET http://10.76.150.17/compute/v2.0 -H "OpenStack-API-Version: compute 2.51" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.51" -H "X-Auth-Token:gAAAAABZcbz3PfBntmI6mpGnnh3y1_uLYGYzZ9ivohMH6ZL2OymLyZkSXfZe-m9PUaGcocKgLsIp2iRHRho_nfF4N-T2erbvT7hzwtyhqBzlNqR5L306QbRfx3wsZmS-0ml0CR2KDa4chVu25ipI7zPUWEpm9GrgYe8BZOKKUVvvHkT442JC8To"
HTTP/1.1 300 Multiple Choices
Date: Fri, 21 Jul 2017 09:08:20 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 473
Content-Type: application/json
Connection: close
{"choices": [{"status": "SUPPORTED", "media-types": [{"base":
"application/json", "type":
"application/vnd.openstack.compute+json;version=2"}], "id": "v2.0",
"links": [{"href": "http://10.76.150.17/compute/v2/compute/v2.0",
"rel": "self"}]}, {"status": "CURRENT", "media-types": [{"base":
"application/json", "type":
"application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1",
"links": [{"href": "http://10.76.150.17/compute/v2.1/compute/v2.0",
"rel": "self"}]}]}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1705663/+subscriptions