Updated Branches: refs/heads/api_refactoring 32ca9e2aa -> 7b6132e8e
api: Skip empty uuid processing in ApiDispatcher for received params Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/7b6132e8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/7b6132e8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/7b6132e8 Branch: refs/heads/api_refactoring Commit: 7b6132e8e2e6f3fc375e39bbcb76154b1bd547f9 Parents: 3e29286 Author: Rohit Yadav <[email protected]> Authored: Tue Dec 18 18:16:18 2012 -0800 Committer: Rohit Yadav <[email protected]> Committed: Tue Dec 18 18:16:18 2012 -0800 ---------------------------------------------------------------------- server/src/com/cloud/api/ApiDispatcher.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7b6132e8/server/src/com/cloud/api/ApiDispatcher.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/api/ApiDispatcher.java b/server/src/com/cloud/api/ApiDispatcher.java index 32f8107..3dfcbce 100755 --- a/server/src/com/cloud/api/ApiDispatcher.java +++ b/server/src/com/cloud/api/ApiDispatcher.java @@ -619,6 +619,8 @@ public class ApiDispatcher { field.set(cmdObj, listParam); break; case UUID: + if (paramObj.toString().isEmpty()) + break; // There may be multiple entities defined on the @Entity of a Response.class // UUID CommandType would expect only one entityType, so use the first entityType Class<?>[] entities = annotation.entityType()[0].getAnnotation(Entity.class).value();
