yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #85152
[Bug 1915543] [NEW] Glance returns 403 instead of 404 when images are not found
Public bug reported:
Glance is translating "Not Found" errors from the DB layer into "Not
Authorized" errors in policy, which it should not be doing. In general,
we should always return 404 when something either does not exist, or
when permissions do not allow you to know if that thing exists.
Glance is actually translating both cases into "not authorized", which
is confusing and runs counter to the goal.
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1915543
Title:
Glance returns 403 instead of 404 when images are not found
Status in Glance:
New
Bug description:
Glance is translating "Not Found" errors from the DB layer into "Not
Authorized" errors in policy, which it should not be doing. In
general, we should always return 404 when something either does not
exist, or when permissions do not allow you to know if that thing
exists.
Glance is actually translating both cases into "not authorized", which
is confusing and runs counter to the goal.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1915543/+subscriptions
Follow ups