tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "May, Patrick" <Patrick....@SourceMedia.com>
Subject [PATCH] Catalina CGIServlet broken redirects
Date Wed, 12 Oct 2005 18:55:02 GMT
Hello,

The Catalina CGIServlet (as of tomcat 5.0.28) does not have a special case
for handling "Status" headers set by a cgi script.  When a script tries to
issue a redirect, tomcat returns inconsistent headers:

  HTTP/1.x 200 OK
  Status: 300 Moved

This behaviour breaks the redirect.  Attached is a patch which adds a
special case for Status headers to

  catalina/src/share/org/apache/catalina/servlets/CGIServlet.java

The patch was written against the tomcat 5.0.28 sources.

Cheers,

Patrick May


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick May
Software Engineer
SourceMedia
1 State St Plaza 25th Floor
New York, NY 10004
Tel: (212) 803-6589
Email: patrick.may@sourcemedia.com
URL: www.sourcemedia.com


"This communication is intended solely for the addressee and is confidential and not for third
party unauthorized distribution"
Mime
View raw message