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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]