Quantum API returns 200 status code when wrong error of the API is specified on URI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| neutron |
Undecided
|
Mark McClain | ||
| quantum (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
If a non-existent API version if specified, say X.Y, the Quantum API returns the "versions" screen with a 200 status code.
I'm not sure whether this is the intended behaviour; a 404 would sound more suitable for me.
dan wendlandt (danwent) wrote : Re: [Bug 934115] Re: Quantum API returns 200 status code when wrong error of the API is specified on URI | #2 |
all urls include a version, see:
http://
my guess is that if you query a url with a bogus version, say 2.0, you get
an HTTP 200 back, whereas the bug says you should get a 404 back.
for example:
GET /v2.0/tenants/
On Fri, Mar 2, 2012 at 4:03 PM, Maru Newby <email address hidden> wrote:
> How do I reproduce this problem?
>
> ** Changed in: quantum
> Assignee: (unassigned) => Maru Newby (maru)
>
> --
> You received this bug notification because you are a member of Netstack
> Core Developers, which is subscribed to quantum.
> https:/
>
> Title:
> Quantum API returns 200 status code when wrong error of the API is
> specified on URI
>
> Status in OpenStack Quantum (virtual network service):
> New
>
> Bug description:
> If a non-existent API version if specified, say X.Y, the Quantum API
> returns the "versions" screen with a 200 status code.
> I'm not sure whether this is the intended behaviour; a 404 would sound
> more suitable for me.
>
> To manage notifications about this bug go to:
> https:/
>
--
~~~~~~~
Dan Wendlandt
Nicira Networks: www.nicira.com
twitter: danwendlandt
~~~~~~~
tags: | added: low-hanging-fruit |
Changed in quantum: | |
assignee: | Maru Newby (maru) → Mark McClain (markmcclain) |
Fix proposed to branch: master
Review: https:/
Changed in quantum: | |
status: | New → In Progress |
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: master
commit 102c917be984079
Author: Mark McClain <email address hidden>
Date: Mon Apr 9 10:08:00 2012 -0400
return 404 for invalid api version request
fixes bug: 934115
This fix returns 404 for all non-root requests that route via the
versions app. For root requests ('/') the available api version info is
returned.
Change-Id: I701389d9239cb4
Changed in quantum: | |
status: | In Progress → Fix Committed |
Changed in quantum: | |
milestone: | none → folsom-1 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: stable/essex
Review: https:/
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: stable/essex
commit 18c043c0ae73a91
Author: Mark McClain <email address hidden>
Date: Mon Apr 9 10:08:00 2012 -0400
return 404 for invalid api version request
fixes bug: 934115
This fix returns 404 for all non-root requests that route via the
versions app. For root requests ('/') the available api version info is
returned.
Change-Id: I701389d9239cb4
tags: | added: in-stable-essex |
Changed in quantum: | |
milestone: | folsom-1 → 2012.2 |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
How do I reproduce this problem?