[ 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.