Raise bad request early if image metadata is invalid
Image data is currently uploaded into the backend store even if it is a bad
request. This patch add value validation in the deserializer so we don't set bad
data. It also does a full validation of the image metadata to make sure
everything that is needed for an image upload is set correctly before the upload
can occur.
There were currently some relevant tests that had incorrect names causing them
to not run. These have been fixed and modified.
Reviewed: https:/ /review. openstack. org/12465 github. com/openstack/ glance/ commit/ 3bfd7bd56c1a8eb c8aff1218c52ac1 3b66cabb9f
Committed: http://
Submitter: Jenkins
Branch: master
commit 3bfd7bd56c1a8eb c8aff1218c52ac1 3b66cabb9f
Author: Alex Meade <email address hidden>
Date: Wed Sep 5 13:55:46 2012 -0400
Raise bad request early if image metadata is invalid
Image data is currently uploaded into the backend store even if it is a bad
request. This patch add value validation in the deserializer so we don't set bad
data. It also does a full validation of the image metadata to make sure
everything that is needed for an image upload is set correctly before the upload
can occur.
There were currently some relevant tests that had incorrect names causing them
to not run. These have been fixed and modified.
Fixes bug 1035982
Change-Id: I6f3ef83ba7b3de 3cb885fad9737fe f1a03d9222c