From b7c50683275619927390052c1022a3de1a952f03 Mon Sep 17 00:00:00 2001 From: Likitha Shetty Date: Thu, 8 Aug 2013 16:16:31 +0530 Subject: [PATCH] CLOUDSTACK-4186. Signature computed while accessing VM's console is not aligned with how signature is computed for other APIs --- server/src/com/cloud/servlet/ConsoleProxyServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/servlet/ConsoleProxyServlet.java b/server/src/com/cloud/servlet/ConsoleProxyServlet.java index fe2052e7908..e01d9595215 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);