The following API returned normally although the usage is specified a invalid bool value.
$ curl -X GET -H "X-Auth-Token: xxxx" "http://xxxx:8776//v2/xxxx/os-quota-sets/xxxx?usage=InvalidBool" -H 'Content-type: application/json'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 933 100 933 0 0 5045 0 --:--:-- --:--:-- --:--:-- 5070
{
"quota_set": {
...
}
}
The reason for this is that there is no strict Boolean checking for that API.
The following API also has same issue:
- "usage" of /os-quota-sets API
- "multiattach" of /volumes API
- "detail" of /scheduler-states/get_pools API
- "force" of API /qos-specs
Fix proposed to branch: master /review. openstack. org/331529
Review: https:/