cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/master to c0d3e6f
Date Tue, 14 Apr 2015 11:23:11 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master ac06ec02e -> c0d3e6f5e


server: ignore params signatureversion and expires when validating API args

(cherry picked from commit d361bf684704719902419d372c6ce31d941abe9e)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c0d3e6f5
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c0d3e6f5
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c0d3e6f5

Branch: refs/heads/master
Commit: c0d3e6f5e8dbe5f2ad917b5209ea8707f02c67ca
Parents: ac06ec0
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Apr 14 15:25:17 2015 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Apr 14 16:52:32 2015 +0530

----------------------------------------------------------------------
 .../src/com/cloud/api/dispatch/ParamGenericValidationWorker.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c0d3e6f5/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java b/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
index 7aaafbb..6509d11 100644
--- a/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
+++ b/server/src/com/cloud/api/dispatch/ParamGenericValidationWorker.java
@@ -90,7 +90,7 @@ public class ParamGenericValidationWorker implements DispatchWorker {
                     break;
                 }
             }
-            if (!matchedCurrentParam) {
+            if (!matchedCurrentParam && !((String)actualParamName).equalsIgnoreCase("expires")
&& !((String)actualParamName).equalsIgnoreCase("signatureversion")) {
                 errorMsg.append(" ").append(actualParamName);
                 foundUnknownParam= true;
             }


Mime
View raw message