You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/10/22 19:45:21 UTC
DO NOT REPLY [Bug 13855] New: -
EncodeURLTransformer fails to rewrite URLs on initial request
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13855>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13855
EncodeURLTransformer fails to rewrite URLs on initial request
Summary: EncodeURLTransformer fails to rewrite URLs on initial
request
Product: Cocoon 2
Version: 2.0.3
Platform: All
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: sitemap components
AssignedTo: cocoon-dev@xml.apache.org
ReportedBy: paint007@mc.duke.edu
There is a good explanation of the bug in http://marc.theaimsgroup.com/?l=xml-
cocoon-users&m=103241658409677&w=2. The transformer uses
request.isRequestedSessionIdFromURL() to determine whether to rewrite URLs, but
this is always false on the first page, since there was no session previously,
even though the browser may have cookies turned off. There may be a fix that
actually checks the headers from the browser, but our simple fix is:
replace:
if ( request.isRequestedSessionIdFromURL()) {
with:
if ( request.isRequestedSessionIdFromURL() || this.session.isNew()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org