DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15423>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15423 mod_include ends chunked encoding if included script issues a redirect [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | Summary|mod_include stops processing|mod_include ends chunked |if included script issues a |encoding if included script |redirect |issues a redirect Version|2.0.43 |2.0.44 ------- Additional Comments From [EMAIL PROTECTED] 2003-02-17 19:28 ------- Still broken under 2.0.44. I've poked around a bit more and figured out some additional details; it looks like this is a problem with interaction between chunked encoding and mod_include: --- dozer% cat test-apache2-redir.shtml <!--#include virtual="/cgi-bin/redirtest" --> Got to end! dozer% cat foo.html hiya dozer% cat ~/apache/cgi-bin/redirtest #!/bin/sh echo Location: /foo.html echo '' dozer% nc dozer 8763 GET /test-apache2-redir.shtml HTTP/1.1 Host: dozer.ironplanet.com:8763 HTTP/1.1 200 OK Date: Mon, 17 Feb 2003 19:09:24 GMT Server: Apache/2.0.44 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0210222112 Accept-Ranges: bytes Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=ISO-8859-1 5 hiya 0 0 d Got to end! 0 --- Notice that although the "got to end" message *does* make it through, it comes through *after* not one but two 0-length chunks, each of which is supposed to indicate the end of the document (see RFC2616 section 3.6.1). If you hit this URL with Mozilla or MSIE or links, you just see the "hiya" message. Now, if I replace the include of the CGI script with a direct include of /foo.html, the result is much more reasonable: --- dozer% cat test-apache2-redir2.shtml <!--#include virtual="/foo.html" --> Got to end! dozer% nc dozer 8763 GET /test-apache2-redir2.shtml HTTP/1.1 Host: dozer.ironplanet.com:8763 HTTP/1.1 200 OK Date: Mon, 17 Feb 2003 19:22:29 GMT Server: Apache/2.0.44 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0210222112 Accept-Ranges: bytes Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=ISO-8859-1 5 hiya d Got to end! 0 --- I'd expect to see exactly the same output whether or not there's an internal redirect in the middle of the server-side processing of the .shtml file. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
