d8928c2067
create and update apis of 'volume-type' and 'group_type' returns 500 error if boolean 'is_public' value is passed in the form of string. Internally, database api doesn't convert is_public from string to boolean and hence it raises following error: DBError: (exceptions.ValueError) invalid literal for int() with base 10 User can pass following valid boolean values to these APIs: '0', 'f', 'false', 'off', 'n', 'no', '1', 't', 'true', 'on', 'y', 'yes' Used cinder.utils.get_bool_param method to convert 'is_public' parameter from string to boolean. For invalid boolean values it will return exception.InvalidParameterValue. APIImpact: Now create and update apis of 'volume-type' and 'group_type' will not return 500 if boolean 'is_public' passed in the form of string. For boolean values other than the specified above these api's will return 400 HTTPBadRequest. Closes-Bug: #1670260 Change-Id: I9337a9182d714d7e56958fd3fb340108110783a7
8 lines
345 B
YAML
8 lines
345 B
YAML
---
|
|
fixes:
|
|
- |
|
|
Fixed issue where ``create`` and ``update`` api's of ``volume-type`` and
|
|
``group_type`` were returning 500 error if boolean 'is_public' value
|
|
passed in the form of string. Now user can pass following valid boolean
|
|
values to these api's:
|
|
'0', 'f', 'false', 'off', 'n', 'no', '1', 't', 'true', 'on', 'y', 'yes' |