[ http://jira.codehaus.org/browse/DISPL-316?page=comments#action_62722 ]
Luca Barozzi commented on DISPL-316:
------------------------------------
Well, this were the code, in a JSP, creating the problem before the
replaceAll("&", "&") were added.
[...]
PortletURL listUrl = renderResponse.createActionURL();
listUrl.setParameter("PAGE", "PROJECTPAGE");
listUrl.setParameter("SOURCE", "ProjectsList");
listUrl.setParameter("COMMAND", "LIST");
=> pageContext.setAttribute("listUrl", listUrl.toString().replaceAll("&",
"&"));
[...]
<dt:table id="progetto" class="list"
name="${progetti}" requestURI="${listUrl}"
requestURIcontext="false" excludedParams="*">
[...]
</dt:table>
[...]
the portal is eXo and listUrl contains "&" as of given example. The
parameter il passed to the table tag as the requestURI attribute and not
unescaped by the browser before string tokenizing.
> allow ampersand escaped url in requestURI attribute
> ---------------------------------------------------
>
> Key: DISPL-316
> URL: http://jira.codehaus.org/browse/DISPL-316
> Project: DisplayTag
> Type: Bug
> Components: HTML Generation
> Versions: 1.1
> Reporter: Luca Barozzi
> Priority: Trivial
>
>
> Passing in an ampersand escaped url in requestURI attribute produces wrong
> pagination/sorting link urls.
> Say requestURI is:
> http://my.portal/myapp?portalparam1=param1&portalparam2=param2
> A link url may be:
> http://my.portal/myapp?amp;portalparam2=param1&portalparam1=param1&page=...
> May be DefaultHref fails to tokenize parameters (row 113 as of version 1.1):
> StringTokenizer paramTokenizer = new StringTokenizer(tokenizer.nextToken(),
> "&");
> with ampersand escaped urls it happens a token to be amp;portalparam2 instead
> of portalparam2.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel