← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1283872] Re: webob.exc.HTTPForbidden can't show correct message

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => icehouse-rc1

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

Title:
  webob.exc.HTTPForbidden can't show correct message

Status in Cinder:
  Fix Released
Status in OpenStack Identity (Keystone):
  Fix Released
Status in OpenStack Neutron (virtual network service):
  Fix Released
Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  In nova/api/ec2/__init__.py there are codes like:

  154     def __call__(self, req):
  155         access_key = str(req.params['AWSAccessKeyId'])
  156         failures_key = "authfailures-%s" % access_key
  157         failures = int(self.mc.get(failures_key) or 0)
  158         if failures >= CONF.lockout_attempts:
  159             detail = _("Too many failed authentications.")
  160             raise webob.exc.HTTPForbidden(detail=detail)

  But webob.exc.HTTPForbidden should use the 'explanation' parameter to
  show the error message.

  The source can be referred to

  https://github.com/Pylons/webob/blob/master/webob/exc.py#L666

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


References