Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5A5310DC4 for ; Thu, 8 Aug 2013 11:04:23 +0000 (UTC) Received: (qmail 12867 invoked by uid 500); 8 Aug 2013 11:04:23 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 12831 invoked by uid 500); 8 Aug 2013 11:04:23 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 12823 invoked by uid 99); 8 Aug 2013 11:04:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2013 11:04:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 35303835B30; Thu, 8 Aug 2013 11:04:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: likithas@apache.org To: commits@cloudstack.apache.org Message-Id: <695aaa835b344b3397022a48a14b0301@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/master to b7c5068 Date: Thu, 8 Aug 2013 11:04:22 +0000 (UTC) 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 Authored: Thu Aug 8 16:16:31 2013 +0530 Committer: Likitha Shetty 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);