← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1915543] Re: Glance may return 403 instead of 404 when images are not found if policy says to

 

** Changed in: glance
       Status: In Progress => Fix Released

-- 
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 may return 403 instead of 404 when images are not found if
  policy says to

Status in Glance:
  Fix Released

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



References