From issues-return-14641-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Fri Mar 19 17:40:48 2010 Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 53837 invoked from network); 19 Mar 2010 17:40:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Mar 2010 17:40:48 -0000 Received: (qmail 92454 invoked by uid 500); 19 Mar 2010 17:40:48 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 92423 invoked by uid 500); 19 Mar 2010 17:40:48 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 92416 invoked by uid 99); 19 Mar 2010 17:40:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 17:40:48 +0000 X-ASF-Spam-Status: No, hits=-1070.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Mar 2010 17:40:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 46868234C1F2 for ; Fri, 19 Mar 2010 17:40:27 +0000 (UTC) Message-ID: <487643382.368351269020427287.JavaMail.jira@brutus.apache.org> Date: Fri, 19 Mar 2010 17:40:27 +0000 (UTC) From: "Sean Ford (JIRA)" To: issues@struts.apache.org Subject: [jira] Created: (WW-3411) query string decoding error in URLHelper.parseQueryString MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 query string decoding error in URLHelper.parseQueryString --------------------------------------------------------- Key: WW-3411 URL: https://issues.apache.org/jira/browse/WW-3411 Project: Struts 2 Issue Type: Bug Affects Versions: 2.1.8.1 Reporter: Sean Ford Attachments: URLHelper_parseQueryString_EncodingFix.patch There is a bug in URLHelper.parseQueryString() when dealing with keys in a query string that are URL Encoded. Example: UrlHelper.parseQueryString("a%3Ca=1") returns a map {"a%3Ca" : "1"}. Note, the key is still URL Encoded. The problem becomes apparent if you use with includeParams="all", which will grab parameters from both the query string and request parameterMap to include into a URL. Example: Request URL: /myAction.action?a: /myAction.action?a URL, one encoded and one decoded. "a