DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30833>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30833 response.sendRedirect() does not include port Summary: response.sendRedirect() does not include port Product: Tomcat 5 Version: 5.0.27 Platform: All URL: http://jakarta.apache.org/tomcat/tomcat-5.0- doc/servletapi/javax/servlet/http/HttpServletResponse.ht ml#sendRedirect(java.lang.String) OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] >From the spec: "the servlet container must convert the relative URL to an absolute URL before sending the response to the client." The problem is that the port is not preserved in the redirect. For example take the simply jsp: <% response.sendRedirect("snoop.jsp"); %> When in a web browser (mozilla 1.7.2) the port is preserved (for this test case, not all the time). But telneting to apache/tomcat myself resulted in: $ telnet login.d1segs.selectacast.net 81 Trying 199.107.233.211... Connected to login.d1segs.selectacast.net. Escape character is '^]'. POST /redirect-test.jsp HTTP/1.1 HOST: login.d1segs.selectacast.net HTTP/1.1 302 Moved Temporarily Date: Tue, 24 Aug 2004 18:46:13 GMT Server: Apache/2.0.50 (Unix) mod_ssl/2.0.50 OpenSSL/0.9.7a mod_jk/1.2.5 Set-Cookie: JSESSIONID=8E18AD6D77E3D1337DA9FDF1BC7C0F4B; Path=/ Location: http://login.d1segs.selectacast.net/snoop.jsp ^^^^ See, no port. Content-Length: 0 Content-Type: text/html; charset=ISO-8859-1 Like I said in a web browser in this test case the port was preserved, but the reason I was poking around in this is that in my real jsp the port was not being preserved. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]