Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E993AD0FE for ; Tue, 5 Feb 2013 03:26:43 +0000 (UTC) Received: (qmail 35928 invoked by uid 500); 5 Feb 2013 03:26:43 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 35760 invoked by uid 500); 5 Feb 2013 03:26:43 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 35732 invoked by uid 99); 5 Feb 2013 03:26:42 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 03:26:42 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CF3DC82A080; Tue, 5 Feb 2013 03:26:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mice@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: refs/heads/4.1 - CLOUDSTACK-1142 Testing LDAP Auth Failed - due to % being illegal character in queryfilter Message-Id: <20130205032641.CF3DC82A080@tyr.zones.apache.org> Date: Tue, 5 Feb 2013 03:26:41 +0000 (UTC) Updated Branches: refs/heads/4.1 5cc282c46 -> dcb2e5a8e CLOUDSTACK-1142 Testing LDAP Auth Failed - due to % being illegal character in queryfilter Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/dcb2e5a8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/dcb2e5a8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/dcb2e5a8 Branch: refs/heads/4.1 Commit: dcb2e5a8ed750af483d28963f3cf97b6bad70239 Parents: 5cc282c Author: Mice Xia Authored: Tue Feb 5 11:26:03 2013 +0800 Committer: Mice Xia Committed: Tue Feb 5 11:30:55 2013 +0800 ---------------------------------------------------------------------- server/src/com/cloud/api/ApiServer.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/dcb2e5a8/server/src/com/cloud/api/ApiServer.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/api/ApiServer.java b/server/src/com/cloud/api/ApiServer.java index aa28125..0df6cd4 100755 --- a/server/src/com/cloud/api/ApiServer.java +++ b/server/src/com/cloud/api/ApiServer.java @@ -292,7 +292,7 @@ public class ApiServer implements HttpRequestHandler { // always trust commands from API port, user context will always be UID_SYSTEM/ACCOUNT_ID_SYSTEM UserContext.registerContext(_systemUser.getId(), _systemAccount, null, true); sb.insert(0, "(userId=" + User.UID_SYSTEM + " accountId=" + Account.ACCOUNT_ID_SYSTEM + " sessionId=" + null + ") "); - String responseText = handleRequest(parameterMap, true, responseType, sb); + String responseText = handleRequest(parameterMap, false, responseType, sb); sb.append(" 200 " + ((responseText == null) ? 0 : responseText.length())); writeResponse(response, responseText, HttpStatus.SC_OK, responseType, null);