struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33355] - computeURLWithCharEncoding doesn't encodes the & created by the response.encudeURL call
Date Wed, 04 May 2005 07:53:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33355





------- Additional Comments From jozsef_szabo@epam.com  2005-05-04 09:53 -------
My examples was wrong.There is a good sample:
JSP code:

<html:link action="/protected/CustomerDetailsAction" paramId="listid" 
paramName="element" paramProperty="id">
generated code:
<a href="/mpi-ui/cad/protected/CustomerDetailsAction.do?
JSESSIONID=551432&listid=16191">+4916000012345</a>

And this bug depends on the used the Servlet Container too. It is Only occurred 
if the conteiner uses the '&' character to separate the jsessionid. Your result 
will be wrong to if you change the separator from ";" to "&".
Because the encodeURL doesn't knows that PCDATA encoding have to be used in the 
result string- it generates encode free url. After it have to be convert it to 
the target context encoding (in this case this encoding is the PCDATA)
Therefore it seems to bea container problem. but it isn't a container problem. 
The second true solution is:
1; First call the encodeURL on the base url if needed
2; immediately convert the result to PCDATA,
3; add others parameters with &amp; like in the current code.
4; remove the encodeURL call from the enc of method...





-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message