ExternalContext.encodeActionURL doesn't parse portlet: URLs correctly
---------------------------------------------------------------------
Key: PORTLETBRIDGE-88
URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-88
Project: MyFaces Portlet Bridge
Issue Type: Bug
Components: Impl
Affects Versions: 2.0.0-alpha, 1.0.0-beta
Reporter: Michael Freedman
Assignee: Michael Freedman
Code:
if (isPortletURL(url))
{
isPortletURL = true;
nonFacesAction = true;
//URL is of the form scheme:urlType?queryString
// remove the scheme
path = url.substring(url.indexOf(":")+ 1);
queryStart = url.indexOf('?');
Should be
if (isPortletURL(url))
{
isPortletURL = true;
nonFacesAction = true;
//URL is of the form scheme:urlType?queryString
// remove the scheme
path = url.substring(url.indexOf(":")+ 1);
queryStart = path.indexOf('?');
I.e. the last line should locate the start of the query string from the
schemeless url.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.