mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7581: Empty 'ID' parameters allowed in API calls
Fix is to fail API calls with empty 'id' parameter value upfront rather than
going ahead and failing with NPE later on.
Backported using fix 4e07dd1dc4 by
Koushik Das <koushik@apache.org>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
0610bf670c
commit
dc80b25361
|
|
@ -482,8 +482,6 @@ public class ApiDispatcher {
|
|||
field.set(cmdObj, listParam);
|
||||
break;
|
||||
case UUID:
|
||||
if (paramObj.toString().isEmpty())
|
||||
break;
|
||||
Long internalId = translateUuidToInternalId(paramObj.toString(), annotation);
|
||||
field.set(cmdObj, internalId);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue