cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: cocoon.redirectTo broken
Date Thu, 18 Mar 2004 07:25:28 GMT
The problem is due to the recent changes for internl redirect handling.
I reverted this change and it should work now again.

Carsten 

> -----Original Message-----
> From: Unico Hommes [mailto:unico@hippo.nl] 
> Sent: Wednesday, March 17, 2004 9:23 PM
> To: dev@cocoon.apache.org
> Subject: Re: cocoon.redirectTo broken
> 
> 
> I've added an test scenario and anteater testcase to show 
> this bug. See http://localhost:8888/test/sendpage/explain-test.html
> 
> --
> Unico
> 
> Unico Hommes wrote on 17-3-2004 17:14:
> 
> > 
> > Oops, it's something else. It is related to cocoon.sendPage(). It 
> > doesn't consider internal-only pipelines:
> > 
> > sitemap.xmap:
> > <map:pipeline internal-only="true">
> >   <map:match pattern="internal">
> >    ...
> >   </map:match>
> > </map:pipeline>
> > 
> > <map:pipeline>
> >   <map:match pattern="**">
> >     <map:call function="sendInternal"/>
> >   </map:match>
> > </map:pipeline>
> > 
> > flow.js:
> > function sendInternal() {
> >   cocoon.sendPage("internal",null);
> > }
> > 
> > Requesting anything will cause an infinite loop.
> > 
> > Setting internal-only="false" on the first pipeline fixes it again.
> > 
> > --
> > Unico
> > 
> > Unico Hommes wrote on 17-3-2004 16:57:
> > 
> >>
> >> It seems that cocoon.redirectTo FOM function is now doing 
> an internal 
> >> redirect instead of causing a browser redirect. Calling
> >> cocoon.redirectTo("somewhere") shows the following message in the 
> >> sitemap log: INFO    (2004-03-17) 16:44.43:471   [sitemap] 
> >> (/samples/slide/content/) PoolThread-4/ForwardRedirector: 
> Redirecting 
> >> to 'cocoon:/somewhere/'.
> >>
> >> My first guess was that the following patch was the reason: 
> >> http://issues.apache.org/bugzilla/show_bug.cgi?id=26854 . But the 
> >> problem seems to persist when I undo that change. Anybody 
> know what 
> >> has caused this or how to fix it?
> >>
> >> --
> >> Unico
> 


Mime
View raw message