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 2003/01/20 02:08:25 UTC
DO NOT REPLY [Bug 16246] New: -
EncodeURLTransformer, rewriting doesn't work when session created by XSP
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