You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/09/12 11:23:01 UTC
BugRat Report #106 has been filed.
Bug report #106 has just been filed.
You can view the report at the following URL:
<http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/106>
REPORT #106 Details.
Project: Catalina
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment:
Release: current CVS source
JVM Release: 1.2
Operating System: Solaris
OS Release: 2.7
Platform: sparc
Synopsis:
302 redirect status line contains new url not reason message
Description:
sendRedirect(String location) in org.apache.tomcat.connector.HttpResponseBase.java
sends the URL not a descriptive Message in the status line.
Can someone with committer status apply the following patch:
***************
*** 919,925 ****
reset();
String absolute = toAbsolute(location);
! setStatus(SC_MOVED_TEMPORARILY, absolute);
setHeader("Location", absolute);
setContentLength(0);
flushBuffer();
--- 920,926 ----
reset();
String absolute = toAbsolute(location);
! setStatus(SC_MOVED_TEMPORARILY);
setHeader("Location", absolute);
setContentLength(0);
flushBuffer();
FYI, the relevant excerpt from RFC2616:
Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
6.1.1 Status Code and Reason Phrase
The Status-Code element is a 3-digit integer result code of the
attempt to understand and satisfy the request. These codes are fully
defined in section 10. The Reason-Phrase is intended to give a short
textual description of the Status-Code. The Status-Code is intended
for use by automata and the Reason-Phrase is intended for the human
user. The client is not required to examine or display the Reason-
Phrase.