mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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
This commit is contained in:
parent
7f440854f7
commit
4e07dd1dc4
@ -329,8 +329,6 @@ public class ParamProcessWorker implements DispatchWorker {
|
||||
field.set(cmdObj, listParam);
|
||||
break;
|
||||
case UUID:
|
||||
if (paramObj.toString().isEmpty())
|
||||
break;
|
||||
final Long internalId = translateUuidToInternalId(paramObj.toString(), annotation);
|
||||
field.set(cmdObj, internalId);
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user