This is the most obscure bug I have ever seen:

Take a look at the very simple JSP at the end of this message.  If you
include "go=true" as a query parameter, it issues a redirect to itself
like this:

redir.jsp?foo=bar#123

If you use the redirect from IE6, Tomcat displays "foo bar#123" rather
than the expected "foo bar".  If you hit refresh at the new URL, Tomcat
gets "foo bar" right.

When this experiment is tried from Mozilla, Tomcat works properly.

What is special about a redirect from IE6?!?

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]


<%@ page language="java" %>
<%@ page import="java.util.*" %>

<%! int invokeCount; %>

<%
        String go = request.getParameter("go");
        if ("true".equals(go))
        {
                response.sendRedirect("redir.jsp?foo=bar#123");
                return;
        }
%>

<html>
        <body>
                foo <%= request.getParameter("foo") %>
                <br/>
                just to be sure not caching: <%= invokeCount++ %> 
                <br/>
                <a href="redir.jsp?go=true">redir.jsp?go=true</a>
        </body>
</html>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to