cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13855] New: - EncodeURLTransformer fails to rewrite URLs on initial request
Date Tue, 22 Oct 2002 17:45:21 GMT
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


Mime
View raw message