You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "May, Patrick" <Pa...@SourceMedia.com> on 2005/10/12 20:55:02 UTC
[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"
RE: [PATCH] Catalina CGIServlet broken redirects
Posted by Mark Thomas <ma...@apache.org>.
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"