myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Korherr (JIRA)" <>
Subject [jira] Updated: (MYFACES-2954) ExternalContext.encodeRedirectURL() fails if 'baseUrl' contains empty parameters
Date Sat, 23 Oct 2010 10:52:22 GMT


Jakob Korherr updated MYFACES-2954:

       Resolution: Fixed
    Fix Version/s: 2.0.3-SNAPSHOT
           Status: Resolved  (was: Patch Available)

Applied patches. Thanks a lot, Christian!

> ExternalContext.encodeRedirectURL() fails if 'baseUrl' contains empty parameters
> --------------------------------------------------------------------------------
>                 Key: MYFACES-2954
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.3-SNAPSHOT
>            Reporter: Christian Kaltepoth
>            Assignee: Jakob Korherr
>             Fix For: 2.0.3-SNAPSHOT
>         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.

View raw message