You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Christian Kaltepoth (JIRA)" <de...@myfaces.apache.org> on 2010/10/22 12:20:22 UTC
[jira] Created: (MYFACES-2954) ExternalContext.encodeRedirectURL()
fails if 'baseUrl' contains empty parameters
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
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.
[jira] Updated: (MYFACES-2954) ExternalContext.encodeRedirectURL()
fails if 'baseUrl' contains empty parameters
Posted by "Christian Kaltepoth (JIRA)" <de...@myfaces.apache.org>.
[ 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.
[jira] Updated: (MYFACES-2954) ExternalContext.encodeRedirectURL()
fails if 'baseUrl' contains empty parameters
Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: 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
> 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.