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=16246>.
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=16246

EncodeURLTransformer, rewriting doesn't work when session created by XSP

           Summary: EncodeURLTransformer, rewriting doesn't work when
                    session created by XSP
           Product: Cocoon 2
           Version: 2.0.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


example sitemap snippet:

...
<map:match pattern="test.html">
  <map:generate type="serverpages" src="test.xsp"/>
  <map:transform type="encodeURL"/>
  <map:serialize type="html"/>
</map:match>
...

here, a session is created within test.xsp (e.g. via @create-session), but 
links in the generated page are not rewritten by the following encodeURL 
transformer.

the reason is that EncodeURLTransformer tries to get the session from the 
request in its setup() method, i.e. while the pipeline is setup. since at that 
point no generation has taken place (no XSP code executed), the session hasn't 
been created yet.

fix: save Request in EncodeURLTransformer, then get session from Request in 
EncodeURLTransformer.startElement ().

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to