For multiple choices response, links displayed incorrect URL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari |
New
|
Undecided
|
Shilpa Devharakar |
Bug Description
If we given wrong URL mistakenly lets say to get masakari list, response shows incorrect URL.
Actual
======
Here request with 'v4' version, in response check "links", here it displays wrong link
curl -g -i -X GET http://<HOST_IP>
HTTP/1.1 300 Multiple Choices
Date: Tue, 20 Aug 2019 13:26:22 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 292
Content-Type: application/json
Connection: close
{"choices": [{"status": "CURRENT", "media-types": [{
"base": "application/json",
"type": "application/
"id": "v1.0",
"links": [{"href": "http://<HOST_IP>
"rel": "self"}]}]}
Expected
========
curl -g -i -X GET http://<HOST_IP>
HTTP/1.1 300 Multiple Choices
Date: Tue, 20 Aug 2019 13:26:22 GMT
Server: Apache/2.4.29 (Ubuntu)
Content-Length: 292
Content-Type: application/json
Connection: close
{"choices": [{"status": "CURRENT", "media-types": [{
"base": "application/json",
"type": "application/
"id": "v1.0",
"links": [{"href": "http://<HOST_IP>
"rel": "self"}]}]}
Changed in masakari: | |
assignee: | nobody → Shilpa Devharakar (shilpasd) |