yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #10216
[Bug 1283872] Re: webob.exc.HTTPForbidden can't show correct message
Ok, I see the root cause now, didn't realize this is specific for wsgi
module. Thanks for clarification
** Changed in: neutron
Status: Invalid => In Progress
--
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 Committed
Status in OpenStack Identity (Keystone):
In Progress
Status in OpenStack Neutron (virtual network service):
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