OSAPI: some http bad requests fail to set explanation

Bug #797743 reported by Alex Meade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Titan

Bug Description

There are numerous cases where the explanation is not getting set for HTTP 400 Bad Requests. In many cases these are also not wrapped in faults.Fault.

Ex:

return webob.exc.HTTPBadRequest(_("Unsupported Content-Type"))

should be:
 msg = _("Unsupported Content-Type")
return faults.Fault(webob.exc.HTTPBadRequest(explanation=msg))

Related branches

Alex Meade (alex-meade)
Changed in nova:
assignee: nobody → Titan (rackspace-titan)
status: New → In Progress
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
Alex Meade (alex-meade)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-2
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-2 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.