You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Freedman (JIRA)" <de...@myfaces.apache.org> on 2009/08/12 20:19:14 UTC

[jira] Resolved: (PORTLETBRIDGE-88) ExternalContext.encodeActionURL doesn't parse portlet: URLs correctly

     [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Freedman resolved PORTLETBRIDGE-88.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.0.0

> 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: 1.0.0-beta, 2.0.0-alpha
>            Reporter: Michael Freedman
>            Assignee: Michael Freedman
>             Fix For: 1.0.0, 2.0.0
>
>
> 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.