Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 75197 invoked from network); 22 Oct 2010 10:22:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Oct 2010 10:22:40 -0000 Received: (qmail 1190 invoked by uid 500); 22 Oct 2010 10:22:40 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 919 invoked by uid 500); 22 Oct 2010 10:22:40 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 912 invoked by uid 99); 22 Oct 2010 10:22:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Oct 2010 10:22:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Oct 2010 10:22:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9MAMJk2004530 for ; Fri, 22 Oct 2010 10:22:19 GMT Message-ID: <18132920.24111287742939225.JavaMail.jira@thor> Date: Fri, 22 Oct 2010 06:22:19 -0400 (EDT) From: "Christian Kaltepoth (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Updated: (MYFACES-2954) ExternalContext.encodeRedirectURL() fails if 'baseUrl' contains empty parameters In-Reply-To: <26739845.24041287742822048.JavaMail.jira@thor> 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/MYFACES-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Kaltepoth updated MYFACES-2954: ----------------------------------------- Status: Patch Available (was: Open) > ExternalContext.encodeRedirectURL() fails if 'baseUrl' contains empty parameters > -------------------------------------------------------------------------------- > > Key: MYFACES-2954 > URL: https://issues.apache.org/jira/browse/MYFACES-2954 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 2.0.3-SNAPSHOT > Reporter: Christian Kaltepoth > Attachments: MYFACES-2954-fix.patch, MYFACES-2954-test.patch > > > Calling ExternalContext.encodeRedirectURL() with a baseUrl containing empty parameters fails with an ArrayIndexOutOfBoundsException. > Example: > externalContext.encodeRedirectURL("/test?p1=&p2=test", null) > The spec contains the following statement regarding this method: "This method must be able to encode the parameters to a baseUrl that may or may not have existing query parameters" > I've attached a unit test and a patch for this issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.