Comment 2 for bug 1252179

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/56886
Committed: http://github.com/openstack/cinder/commit/381e717b4cdebb75f90dc4c62120e8d607f2a98c
Submitter: Jenkins
Branch: master

commit 381e717b4cdebb75f90dc4c62120e8d607f2a98c
Author: huangtianhua <email address hidden>
Date: Mon Nov 18 16:58:45 2013 +0800

    Create snapshot throws 500 Internal Error

    The server doesn't check whether the parameter "volume_id" is in request body.
    So the 500 error has been thrown.

    We should catch the KeyError and transfer the KeyError to 400(HTTPBadRequest)
    instead of 500.

    Change-Id: I8a1dde1fd6ed820b39995af434efacc2a27c9604
    Closes-Bug: #1252179