Volume types create with empty/incorrect body returns HTTP status 422

Bug #1090356 reported by Rohan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Matthew Treinish

Bug Description

Branch : master
Commit : 403142a43f553b1488eae795c6dfff3967825bf1

API :
POST http://<ip>:8776/v1/<tenant>/types
Body : {} or []

Output :
Status : 422 Unprocessable Entity

Body :
{"computeFault": {"message": "Unable to process the contained instructions", "code": 422}}

Expected :
Status: 400 Bad Request

tags: added: 1090356
tags: added: tempest
removed: 1090356
Changed in cinder:
assignee: nobody → Matthew Treinish (treinish)
status: New → Confirmed
tags: added: folsom-backport-potential
removed: ntt tempest
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/24117

Changed in cinder:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/24117
Committed: http://github.com/openstack/cinder/commit/6a7e93dfc750e08e95c6b53b122407c763883c6c
Submitter: Jenkins
Branch: master

commit 6a7e93dfc750e08e95c6b53b122407c763883c6c
Author: Matthew Treinish <email address hidden>
Date: Mon Mar 11 16:51:24 2013 -0400

    Fix bad request response code on extra_specs create.

    This commit changes the error response on a bad body from 422 to 400 for
    an extra spec create request.

    Fixes bug 1090356

    Change-Id: I7925bbd53fb9647440532b206feee3421fb9f38b

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: grizzly-rc1 → 2013.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/34335

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.