You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Raphael Jean (JIRA)" <ta...@jakarta.apache.org> on 2006/05/16 19:54:06 UTC

[jira] Commented: (TAPESTRY-802) All Tapestry URLs should be encoded using RequestCycle.encodeURL(), except for portlets URLs

    [ http://issues.apache.org/jira/browse/TAPESTRY-802?page=comments#action_12412024 ] 

Raphael Jean commented on TAPESTRY-802:
---------------------------------------

The JSR-168 portlet spec clearly states (12.1.2):
"Portlets may generate content with URLs referring to other resources within the portal,
such as servlets, JSPs, images and other static files. Some portal/portlet-container
implementations may require those URLs to contain implementation specific data
encoded in it. Because of that, portlets should use the encodeURL method to create such
URLs. The encodeURL method may include the session ID and other portal/portletcontainer
specific information into the URL. If encoding is not needed, it returns the URL
unchanged."

Also, this is required when a tapestry portlet is running as a wsrp producer. All urls present in the html markup generated by the portlet must be encoded in a specific way, so that they can be rewritten by the wsrp consumer. Something like: 
wsrp_rewrite?wsrp-urlType=resource&wsrp-url=YOUR_URL_GOES_HERE/wsrp_rewrite



> All Tapestry URLs should be encoded using RequestCycle.encodeURL(), except for portlets URLs
> --------------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-802
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-802
>      Project: Tapestry
>         Type: Bug

>   Components: Framework, Portlet
>     Versions: 4.0
>  Environment: WSRP4J
> Tapestry 4.0rc1
>     Reporter: Raphael Jean
>     Priority: Minor
>      Fix For: 4.0.1
>  Attachments: TAPESTRY-802-patch.txt
>
> All Tapestry URLs referencing the Tapestry servlet or context assets should be encoded using RequestCycle.encodeURL() whether the link is stateless or not.
> In portlet mode, the portlet URLs obtained by createActionURL() or createRenderURL() should NOT be encoded.
> Failure to do so causes problems when running as a WSRP producer where the URLs will be WSRP defined tokens that get re-written by the WSRP container. Action, render and resource URLs are encoded differently.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org