Repository: cloudstack Updated Branches: refs/heads/master 7f440854f -> 4e07dd1dc
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 Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4e07dd1d Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4e07dd1d Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4e07dd1d Branch: refs/heads/master Commit: 4e07dd1dc4b4618fff2ef25c846ce6b95a8e580d Parents: 7f44085 Author: Koushik Das <[email protected]> Authored: Thu Sep 18 17:10:25 2014 +0530 Committer: Koushik Das <[email protected]> Committed: Thu Sep 18 17:10:25 2014 +0530 ---------------------------------------------------------------------- server/src/com/cloud/api/dispatch/ParamProcessWorker.java | 2 -- 1 file changed, 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4e07dd1d/server/src/com/cloud/api/dispatch/ParamProcessWorker.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/api/dispatch/ParamProcessWorker.java b/server/src/com/cloud/api/dispatch/ParamProcessWorker.java index 9a98f33..ff6d666 100644 --- a/server/src/com/cloud/api/dispatch/ParamProcessWorker.java +++ b/server/src/com/cloud/api/dispatch/ParamProcessWorker.java @@ -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;
