← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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

** Affects: nova
     Importance: Undecided
     Assignee: Haiwei Xu (xu-haiwei)
         Status: In Progress

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

** Changed in: nova
       Status: New => In Progress

-- 
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 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/nova/+bug/1283872/+subscriptions


Follow ups

References