yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60087
[Bug 1652719] [NEW] The JSON-Schema of string integer can't handle the case of empty string
You have been subscribed to a public bug:
The schema of string integer didn't handle the case of empty string
https://github.com/openstack/nova/blob/master/nova/api/validation/parameter_types.py#L186
positive_integer = {
'type': ['integer', 'string'],
'pattern': '^[0-9]*$', 'minimum': 1
}
non_negative_integer = {
'type': ['integer', 'string'],
'pattern': '^[0-9]*$', 'minimum': 0
}
There is no limit on the length of string. So the user can input a empty string. When I input empty string, the nova api return 500.
The affected APIs are:
1. create_backup
2. server create with multiple create
3. networks
4. tenant_networks
** Affects: nova
Importance: Undecided
Status: New
--
The JSON-Schema of string integer can't handle the case of empty string
https://bugs.launchpad.net/bugs/1652719
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova).
References