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 16246] New: - EncodeURLTransformer, rewriting doesn't work when session created by XSP
Date Mon, 20 Jan 2003 01:08:25 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=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: cocoon-dev@xml.apache.org
        ReportedBy: m_rolappe@web.de


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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message