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/4.2 to be5d076
Date Thu, 08 Aug 2013 10:53:01 GMT
Updated Branches:
  refs/heads/4.2 9a67a5d1e -> be5d07696


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/be5d0769
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/be5d0769
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/be5d0769

Branch: refs/heads/4.2
Commit: be5d07696438e5ae88c8eb876e420b5ba354b486
Parents: 9a67a5d
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Thu Aug 8 16:16:31 2013 +0530
Committer: root <root@likitha-HVM-domU.(none)>
Committed: Thu Aug 8 16:17:51 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/be5d0769/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 097986b..f6559a5 100644
--- a/server/src/com/cloud/servlet/ConsoleProxyServlet.java
+++ b/server/src/com/cloud/servlet/ConsoleProxyServlet.java
@@ -601,7 +601,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