nova/nova/api
Ken'ichi Ohmichi 8010c8faf9 Fix the validation of flavor_extraspecs v2 API
"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
2014-02-24 23:04:45 +09:00
..
ec2 Merge "Use six.moves.urllib.parse instead of urlparse" 2014-02-20 08:45:31 +00:00
metadata Remove vi modelines 2014-02-03 14:19:44 +00:00
openstack Fix the validation of flavor_extraspecs v2 API 2014-02-24 23:04:45 +09:00
validation Define common "name" parameter for Nova v3 API 2014-02-05 19:43:07 +09:00
__init__.py Remove unused copyright from nova.api.__init__ 2014-01-10 16:24:50 +08:00
auth.py Remove vi modelines 2014-02-03 14:19:44 +00:00
manager.py Remove vi modelines 2014-02-03 14:19:44 +00:00
sizelimit.py Remove vi modelines 2014-02-03 14:19:44 +00:00
validator.py Remove @author from copyright statements. 2014-02-12 05:17:10 +11:00