cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likit...@apache.org
Subject git commit: updated refs/heads/master to b7c5068
Date Thu, 08 Aug 2013 11:04:22 GMT
Updated Branches:
  refs/heads/master bf5e86eb2 -> b7c506832


CLOUDSTACK-4186. Signature computed while accessing VM's console is not aligned with how signature
is computed for other APIs


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

Branch: refs/heads/master
Commit: b7c50683275619927390052c1022a3de1a952f03
Parents: bf5e86e
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Thu Aug 8 16:16:31 2013 +0530
Committer: Likitha Shetty <likitha.shetty@citrix.com>
Committed: Thu Aug 8 16:29:12 2013 +0530

----------------------------------------------------------------------
 server/src/com/cloud/servlet/ConsoleProxyServlet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b7c50683/server/src/com/cloud/servlet/ConsoleProxyServlet.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/servlet/ConsoleProxyServlet.java b/server/src/com/cloud/servlet/ConsoleProxyServlet.java
index fe2052e..e01d959 100644
--- a/server/src/com/cloud/servlet/ConsoleProxyServlet.java
+++ b/server/src/com/cloud/servlet/ConsoleProxyServlet.java
@@ -605,7 +605,7 @@ public class ConsoleProxyServlet extends HttpServlet {
             mac.init(keySpec);
             mac.update(unsignedRequest.getBytes());
             byte[] encryptedBytes = mac.doFinal();
-            String computedSignature = Base64.encodeBase64URLSafeString(encryptedBytes);
+            String computedSignature = Base64.encodeBase64String(encryptedBytes);
             boolean equalSig = signature.equals(computedSignature);
             if (!equalSig) {
                 s_logger.debug("User signature: " + signature + " is not equaled to computed
signature: " + computedSignature);


Mime
View raw message