cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Bug? Weird redirect behavior
Date Thu, 20 Jul 2000 12:37:39 GMT
I've seen this too, occassionally. Most times I press refresh and it goes 
away. ???



thb@dimon.is wrote:
>not sure if this bug is due to Cocoon or Tomcat or maybe to
>Apache (which is delegating a virtual host to Tomcat which
>handles it with Cocoon), but I'm getting really weird behavior
>on http redirects. I have an XSP page that checks for a login
>ID in the session, and if it doesn't find one, it redirects to a
>login page using response.sendRedirect(), thus:
>
>if(session.getValue("useruid") == null) {
>     response.sendRedirect(response.encodeRedirectURL
>("http://ddc.dimon.is/login.xml"));
>}
>
>This works whenever I test it, but I've been getting stray reports
>from users elsewhere, who consistently get the following medley:
>
>- part of this document (the _latter_ half!) as it would be served
>   if the "useruid" value _were_ there, followed by
>- the HTTP headers of the redirected request, followed by
>- the result of the redirected request (the login.xml page).
>
>The split in that extraneous first part occurs in an arbitrary-looking
>location, in the middle of a tag, and the document is completed
>right up to the </html> before the response to the redirected
>request. The exact "source" given by Internet Explorer follows at
>the end of this post. If you want to try for yourselves, the page is
>located at http://ddc.dimon.is/ but note that I have been unable to
>recreate the problem in-house.
>
>Theories:
>- Apache muddles up the two HTTP request-response pairs
>   being handled, as it delegates them to Tomcat. Why?
>- Cocoon has some sort of race condition where it manages to
>   keep processing the XSP page and send the response, before
>   the redirection occurs in another thread. Sounds far-fetched!)
>
>Any ideas?
>
>Thanks,
>
>      - Gulli
>
>


--
Robin Green
i-tao Ltd.
4 Skyline Village
Limeharbour
London E14 9TS
United Kingdom
Phone +44 20 7537 2233  Fax +44 70 8081 5118
http://www.i-tao.com


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Mime
View raw message