tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Thomas" <ma...@apache.org>
Subject RE: [PATCH] Catalina CGIServlet broken redirects
Date Sun, 16 Oct 2005 23:20:23 GMT
Patrick,
 
Thanks for your contribution. However, the mailing list doesn't like
attachments. Please can you open a Bugzilla item for this and attach your patch
to that?
 
Thanks,
 
Mark


  _____  

From: May, Patrick [mailto:Patrick.May@SourceMedia.com] 
Sent: Wednesday, October 12, 2005 7:55 PM
To: 'tomcat-dev@jakarta.apache.org'
Subject: [PATCH] Catalina CGIServlet broken redirects



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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message