No need to raise exc.HTTPBadRequest when no volume_id in create_backup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Low
|
Tushar Trambak Gite |
Bug Description
Mitaka imports the function of backing snapshot.
When creating backup of a snapshot with following comamnd:
curl -g -i -X POST http://
it gives following error:
HTTP/1.1 400 Bad Request
Content-Length: 73
Content-Type: application/json; charset=UTF-8
X-Compute-
X-Openstack-
Date: Thu, 25 Feb 2016 07:37:54 GMT
{"badRequest": {"message": "Incorrect request body format", "code": 400}}
Reason:
def create(self, req, body):
"""Create a new backup."""
context = req.environ[
backup = body['backup']
try:
except KeyError:
msg = _("Incorrect request body format")
raise exc.HTTPBadRequ
Changed in cinder: | |
importance: | Undecided → High |
importance: | High → Medium |
Changed in cinder: | |
importance: | Medium → High |
Changed in cinder: | |
milestone: | none → mitaka-3 |
Changed in cinder: | |
importance: | High → Medium |
Changed in cinder: | |
status: | In Progress → New |
Changed in cinder: | |
assignee: | nobody → Tushar Trambak Gite (tushargite96) |
Changed in cinder: | |
status: | New → In Progress |
Fix proposed to branch: master /review. openstack. org/284572
Review: https:/