From 8362d0febae583d74c16aa9d5c90e3712e78f07d Mon Sep 17 00:00:00 2001 From: alena Date: Fri, 19 Nov 2010 14:22:58 -0800 Subject: [PATCH] Reverting back commit e5c137e303babeba2afc80589f6677ae8a20ffd0 as it wasn't meant to be in 2.2 RC1. --- server/src/com/cloud/api/ApiDispatcher.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/src/com/cloud/api/ApiDispatcher.java b/server/src/com/cloud/api/ApiDispatcher.java index e1c45fe4564..090c6d80605 100644 --- a/server/src/com/cloud/api/ApiDispatcher.java +++ b/server/src/com/cloud/api/ApiDispatcher.java @@ -121,13 +121,6 @@ public class ApiDispatcher { public static void setupParameters(BaseCmd cmd, Map params){ Map unpackedParams = cmd.unpackParams(params); - if (cmd instanceof BaseListCmd) { - if ((unpackedParams.get(ApiConstants.PAGE) == null) && (unpackedParams.get(ApiConstants.PAGE_SIZE) != null)) { - throw new ServerApiException(BaseCmd.PARAM_ERROR, "\"page\" parameter is required when \"pagesize\" is specified"); - } else if ((unpackedParams.get(ApiConstants.PAGE_SIZE) == null) && (unpackedParams.get(ApiConstants.PAGE) != null)) { - throw new ServerApiException(BaseCmd.PARAM_ERROR, "\"pagesize\" parameter is required when \"page\" is specified"); - } - } Field[] fields = cmd.getClass().getDeclaredFields(); Class superClass = cmd.getClass().getSuperclass();