Internal error in case of MalformedRequestBody
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
Medium
|
Andrew Lazarev |
Bug Description
Steps to reproduce:
1. Send malformed request to Sahara
Observed behavior: 500 error with { "error_message": "format requires a mapping"} message
Stacktrace:
2015-02-18 14:22:44.640 8687 TRACE sahara.api File "/Users/
2015-02-18 14:22:44.640 8687 TRACE sahara.api raise exceptions.
2015-02-18 14:22:44.640 8687 TRACE sahara.api File "/Users/
2015-02-18 14:22:44.640 8687 TRACE sahara.api self.message = self.message % reason
2015-02-18 14:22:44.640 8687 TRACE sahara.api File "/Users/
2015-02-18 14:22:44.640 8687 TRACE sahara.api unicode_mod = super(Message, self)._
2015-02-18 14:22:44.640 8687 TRACE sahara.api TypeError: format requires a mapping
Cause:
Issue was introduced in https:/
Here is code with bug:
class MalformedReques
message = _("Malformed message body: %(reason)s")
def __init__(self, reason):
Changed in sahara: | |
status: | New → Confirmed |
assignee: | nobody → Andrew Lazarev (alazarev) |
importance: | Undecided → Medium |
Changed in sahara: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in sahara: | |
milestone: | kilo-3 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/157176
Review: https:/