Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67D5C11373 for ; Thu, 12 Jun 2014 10:37:02 +0000 (UTC) Received: (qmail 96358 invoked by uid 500); 12 Jun 2014 10:37:02 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 96330 invoked by uid 500); 12 Jun 2014 10:37:02 -0000 Mailing-List: contact issues-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 issues@cloudstack.apache.org Received: (qmail 96316 invoked by uid 500); 12 Jun 2014 10:37:02 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 96272 invoked by uid 99); 12 Jun 2014 10:37:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 10:37:02 +0000 Date: Thu, 12 Jun 2014 10:37:02 +0000 (UTC) From: "Saksham Srivastava (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-6864) UploadSSlCert API requires double encoding of URL params MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-6864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Saksham Srivastava resolved CLOUDSTACK-6864. -------------------------------------------- Resolution: Fixed > UploadSSlCert API requires double encoding of URL params > -------------------------------------------------------- > > Key: CLOUDSTACK-6864 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6864 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.4.0 > Reporter: Saksham Srivastava > Assignee: Saksham Srivastava > Fix For: 4.4.0 > > > uploadSslCert API requires double UTF-8 encoding of the parameters (certificate, privatekey, certchain) in the URL. > This is because there are 2 decodes happening (First in API Server : handle > paramList = URLEncodedUtils.parse )new URI(request.getRequestLine().getUri()), UTF_8) > and the Second one in the API definition: > CertServiceImpl:uploadSslCert > String cert = URLDecoder.decode(certCmd.getCert(), "UTF-8"); ) -- This message was sent by Atlassian JIRA (v6.2#6252)