← Back to team overview

yahoo-eng-team team mailing list archive

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

 

** Also affects: cinder
   Importance: Undecided
       Status: New

** Changed in: cinder
     Assignee: (unassigned) => Haiwei Xu (xu-haiwei)

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

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

Status in Cinder:
  In Progress
Status in OpenStack Identity (Keystone):
  In Progress
Status in OpenStack Compute (Nova):
  In Progress

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