Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: I6f3ef83ba7b3de3cb885fad9737fef1a03d9222c
- Loading branch information
Showing
5 changed files
with
119 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.