8010c8faf9
"create flavor_extraspecs" v2 API does not validate the data type of a request body. If invalid parameter is passed, an internal error happens. If many invalid requests come, a log file would be occupied with traceback. In addition, it does not validate the lengths of both key and value of extra_specs. extra_specs are stored into the instance_type_extra_specs table, and the key and value are defined as String(255). This patch fixes the validation code from the viewpoint of data type and key/value length. Closes-Bug: #1264220 Change-Id: I195bd5d45a896e9b26dd81dab1e49c9f939b4805 |
||
---|---|---|
.. | ||
ec2 | ||
metadata | ||
openstack | ||
validation | ||
__init__.py | ||
auth.py | ||
manager.py | ||
sizelimit.py | ||
validator.py |