cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [2/3] cloudstack-cloudmonkey git commit: FIX some parameters are double encoded (UI uses javascript to encode on the fly, see ui/scripts/accounts.js:1852), such as registerSSHKeyPair/publickey. I did a quick search for other cases, bu there may be more p
Date Fri, 22 May 2015 17:03:20 GMT
FIX some parameters are double encoded (UI uses javascript to encode on the fly, see ui/scripts/accounts.js:1852),
such as registerSSHKeyPair/publickey. I did a quick search for other cases, bu there may be
more parameters.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/master
Commit: 6bd92395592c133a63b8087bf4acc9cb3a1aac0d
Parents: 830858a
Author: Nuno Tavares <n.tavares@tech.leaseweb.com>
Authored: Fri May 22 16:01:48 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Fri May 22 18:01:33 2015 +0100

----------------------------------------------------------------------
 cloudmonkey/requester.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/6bd92395/cloudmonkey/requester.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/requester.py b/cloudmonkey/requester.py
index b01aa5c..cfe677f 100644
--- a/cloudmonkey/requester.py
+++ b/cloudmonkey/requester.py
@@ -187,6 +187,9 @@ def make_request(command, args, logger, url, credentials, expires,
         args[key] = value
         if not key:
             args.pop(key)
+        else:
+            if key in ['publickey', 'privatekey', 'certificate']:
+                args[key] = urllib.quote_plus(str(value))
 
     # try to use the apikey/secretkey method by default
     # followed by trying to check if we're using integration port


Mime
View raw message