httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49328] mod_filter mishandles contexts in subrequests, corrupt output with mod_deflate and mod_include
Date Wed, 13 Oct 2010 13:48:33 GMT

Rainer Perske <> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #11 from Rainer Perske <> 2010-10-13 09:48:27 EDT
Sorry, I disagree. I have verified that the patch is part of 2.2.16, but the
bug is not fixed nevertheless:


error.shtml contains: <h1>TEST</h1><!--#include virtual="error.php" -->

error.php contains: HELLO

Relevant lines from httpd.conf:

ScriptAlias /sys-bin/ "/www/sys-bin/"
Action php5-script /sys-bin/php5/php
AddHandler php5-script php
AddType text/html .shtml
AddOutputFilter includes;deflate .shtml

(When removing ";deflate" from the AddOutputFilter line, the problem is
circumvented and the output delivered uncompressed to the browser.)


GET /WWWTest/error.shtml HTTP/1.1
Host: www
User-Agent: Dummy/1.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

Response (via Cut&Paste, thus not exactly):

HTTP/1.1 200 OK
Date: Wed, 13 Oct 2010 13:40:51 GMT
Server: Apache
Last-Modified: Wed, 13 Oct 2010 13:20:21 GMT
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Type: text/html
Keep-Alive: timeout=1, max=500
Connection: Keep-Alive
Transfer-Encoding: chunked



Obviously the output of the PHP handler does not get compressed and thus the
output is broken.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message