[
https://issues.apache.org/jira/browse/PORTLETBRIDGE-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Freedman resolved PORTLETBRIDGE-215.
--------------------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
2.0.1
1.0.1
Both encodeActionURL and encodeResourceURL have been modified so they now
assume any URL beginning with a / is contextpath encoded and hence any that do
not can't be an external URL. Primary change from this: anything starting
with a / must be CP encoded or else will fail (before we would add the current
CP).
> EncodeResource url improperly recognizes non context path encoded urls
> beginning with / as being an internal url
> -----------------------------------------------------------------------------------------------------------------
>
> Key: PORTLETBRIDGE-215
> URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-215
> Project: MyFaces Portlet Bridge
> Issue Type: Bug
> Reporter: Michael Freedman
> Assignee: Michael Freedman
> Fix For: 1.0.1, 2.0.1, 3.0.0
>
>
> If you have an url that is passed to encodeResourceUrl which begins
> /foo/bar.jpg where /foo isn't this applications context-path, the bridge
> recognizes this url as a internal app url and prefixs it with the
> context-path. However, because JSF doesn't do auto-context path appending
> the above url is invalid in regular (serlvet) JSF as its neither relative to
> the current page nor the current server. Hence all resource urls that begin
> with / should be seen as external urls -- i.e. assumed to be urls that are
> full path (including the context-path) to another application in this server.
> As ADF's GoLink uses encodeActionUrl for its targets -- we should also review
> and consider correct behavior there as well.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira