/ and /versions have same reply with another response

Bug #1515445 reported by Atsushi SAKAI
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

If this is wrong asking in here, it would be appreciated to notice me the right place (ML etc).

GET / and /versions have same reply with another response
one is 300, another is 200.
Is there any reason?

P.S.
I am checking the / and /versions API for API-Ref and found this issue.

Ref
https://review.openstack.org/#/c/244063/

Erno Kuvaja (jokke)
Changed in glance:
status: New → Invalid
Revision history for this message
Erno Kuvaja (jokke) wrote :

Hi Atsushi,

It's fine to point such out, even like in this case it's not actually bug.

The logic behind the two different responses is that if you are targeting / you most probably want to access the Images API and redirect "300 Multiple choices" is correct. On the other hand if you query directly to /versions you likely really just wanted to query the available versions in which case 200 is correct response. Hopefully that makes sense.

Revision history for this message
Erno Kuvaja (jokke) wrote :

https://ask.openstack.org might be better place just for generic questions than bug tracker, so please feel free to utilize that as well.

Revision history for this message
Atsushi SAKAI (sakaia) wrote :

Thank you for description.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.