← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1210343] Re: Confusing fault mapping between NotAuthorized and Forbidden

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1210343

Title:
  Confusing fault mapping between NotAuthorized and Forbidden

Status in neutron:
  Expired

Bug description:
  Fault map in base.py says:

  FAULT_MAP = {exceptions.NotFound: webob.exc.HTTPNotFound,
               exceptions.Conflict: webob.exc.HTTPConflict,
               exceptions.InUse: webob.exc.HTTPConflict,
               exceptions.BadRequest: webob.exc.HTTPBadRequest,
               exceptions.ServiceUnavailable: webob.exc.HTTPServiceUnavailable,
               exceptions.NotAuthorized: webob.exc.HTTPForbidden,
               netaddr.AddrFormatError: webob.exc.HTTPBadRequest,
               }

  So NotAuthorized (which should map to 401), gets instead mapped to
  403; that does not sounds right!

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1210343/+subscriptions