yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95008
[Bug 2091095] [NEW] 'GET /os-quota-sets/foo' returns HTTP 400 instead of HTTP 404 if foo doesn't exist/was deleted
Public bug reported:
Typically, 'GET /resource/id' returns a HTTP 404 (Not Found) if 'id'
doesn't exist (and a HTTP 403 (Forbidden) if the user doesn't have
permission to access it). The 'os-quota-sets' API is an exception to
this rule. A quota set is identified by a project ID, but you get a HTTP
400 (Bad Request) if the project doesn't exist.
This is difficult for clients to process, since HTTP 400 (Bad Request)
is also used for "real" bad request issues like invalid query parameters
(i.e. schema validation). We should correct this. This is allowed by the
microversion guidelines [1].
[1]
https://docs.openstack.org/nova/latest/contributor/microversions.html#f2
** Affects: nova
Importance: Medium
Assignee: Stephen Finucane (stephenfinucane)
Status: New
** Tags: api api-ref
--
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/2091095
Title:
'GET /os-quota-sets/foo' returns HTTP 400 instead of HTTP 404 if foo
doesn't exist/was deleted
Status in OpenStack Compute (nova):
New
Bug description:
Typically, 'GET /resource/id' returns a HTTP 404 (Not Found) if 'id'
doesn't exist (and a HTTP 403 (Forbidden) if the user doesn't have
permission to access it). The 'os-quota-sets' API is an exception to
this rule. A quota set is identified by a project ID, but you get a
HTTP 400 (Bad Request) if the project doesn't exist.
This is difficult for clients to process, since HTTP 400 (Bad Request)
is also used for "real" bad request issues like invalid query
parameters (i.e. schema validation). We should correct this. This is
allowed by the microversion guidelines [1].
[1]
https://docs.openstack.org/nova/latest/contributor/microversions.html#f2
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2091095/+subscriptions