GET /os-services/{id} should be a 405 instead of 404
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
As of now get service API (show) is not present and it returns the 404 ResourceNotFound error.
As per api-wg guidelines [1] it should return 405 Method Not Allowed.
Steps to reproduce:
1. Use curl command to show service details.
$ curl -g -i -X GET http://
Output:
HTTP/1.1 404 Not Found
Content-Length: 112
Content-Type: application/json
X-Openstack-
X-Compute-
Date: Mon, 12 Jun 2017 09:49:24 GMT
{"message": "The resource could not be found.<br /><br />\n\n\n", "code": "404 Not Found", "title": "Not Found"}
Expected output:
If a request is made to a known resource URI, but the HTTP method used for the request is not supported for that resource, the return code should be 405 Method Not Allowed.
[1] https:/
Changed in nova: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
Changed in nova: | |
assignee: | Abhishek Kekane (abhishek-kekane) → Bhagyashri Shewale (bhagyashri-shewale) |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
summary: |
- get API call for service raises ResourceNotFound error + GET /os-services/{id} should be a 405 instead of 404 |
Changed in nova: | |
assignee: | nobody → Bhagyashri Shewale (bhagyashri-shewale) |
Changed in nova: | |
status: | Confirmed → In Progress |
I can reproduce the bug at master (commit 3a5d592e607176f 4159ff65b6df0e2 b552156aaf) .