cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sonny Sukumar" <>
Subject Re: map:redirect-to...
Date Tue, 03 Aug 2004 18:33:33 GMT

Alright, I finally isolated the problem: it's Mozilla Firebird 0.7!  It has 
a bizarre problem where it sends 2 requests when I only click once.  And 
somehow this only occurs when I use internal redirects within Cocoon.  Go 

I verified that it works correctly in both KDE Konqueror on RedHat Linux 7.3 
and IE6 on Windows XP.

Yeah, so I have no idea how to fix the Mozilla problem without an upgrade of 
the browser itself.  Oh well. <sigh>

Thanks again for your help,


>From: "John L. Webber" <>
>Subject: Re: map:redirect-to...
>Date: Thu, 29 Jul 2004 09:18:43 +0200
>Hi Sonny,
>The only other thing I can suggest trying is to reproduce the bug with an 
>alternate matcher, using different redirect resources and a different 
>action. If the bug doesn't happen then, try swapping in your actual 
>resources one at a time, and then your action. Something like:
><map:match pattern="secure/reallySimpleTest">
>   <map:act type="always-succeeds">
>     <map:redirect-to uri="cocoon:/pageExists1"/>
>   </map:act>
>   <map:redirect-to uri="cocoon:/pageExists2"/>
>If that works as expected (i.e. no bug), try replacing the first redirect 
>with your actual redirect. Of course, you'll have to create the new 
>resources first!
>Good luck,
>Sonny Sukumar wrote:
>>Hey John,
>>I took your advice and spent some time culling through sitemap.log and 
>>discovered that BOTH redirects are taking place when I use internal 
>>'s just that the "test failed" redirect happens second, so I 
>>always see that result page (even though the action's operations in 
>>modifying the database, etc. are performed successfully).
>>Why this happens is still a mystery to me, but here's the sitemap log info 
>>showing this:
>>INFO    (2004-07-28) 10:47.42:387   [sitemap] (/secure/doTest) 
>>http8443-Processor2/RedirectToURINode: Redirecting to 
>>'cocoon:/showTestSucceededPage' at 
>>INFO    (2004-07-28) 10:47.42:388   [sitemap] (/secure/doTest) 
>>http8443-Processor2/ForwardRedirector: Redirecting to 
>>INFO    (2004-07-28) 10:47.42:711   [sitemap] (/secure/doTest) 
>>http8443-Processor2/RedirectToURINode: Redirecting to 
>>'cocoon:/showTestFailedPage' at 
>>INFO    (2004-07-28) 10:47.42:712   [sitemap] (/secure/doTest) 
>>http8443-Processor2/ForwardRedirector: Redirecting to 
>>So I then tried--just for the heck of it--putting an html serializer right 
>>after the first redirect like this:
>><map:match pattern="secure/doTest">
>>  <map:act type="perform-test">
>>    <!-- Test succeeded. -->
>>    <map:redirect-to uri="cocoon:/showTestSucceededPage"/>
>>    <map:serialize type="html"/>
>>  </map:act>
>>  <!-- Test failed. -->
>>  <map:redirect-to uri="cocoon:/showTestFailedPage"/>
>>And of course that didn't work either. :-)  Sooo...maybe there's a bug 
>>with internal redirects?
>>BTW, I'm using the absolute latest stable version of Cocoon ( on 
>>Tomcat 4.1.30.  I upgraded just a few days ago...
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Donít just search. Find. Check out the new MSN Search!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message