[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-bugs
Subject: [Bug 55468] New: gzipped input truncated
From: bugzilla () apache ! org
Date: 2013-08-22 14:33:43
Message-ID: bug-55468-7868 () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]
https://issues.apache.org/bugzilla/show_bug.cgi?id=55468
Bug ID: 55468
Summary: gzipped input truncated
Product: Apache httpd-2
Version: 2.4.6
Hardware: PC
Status: NEW
Severity: regression
Priority: P2
Component: mod_deflate
Assignee: bugs@httpd.apache.org
Reporter: shaggie76@hotmail.com
Longer POST bodies get truncated when mod_deflate inflates gzip-encoded data.
This seems to be a recent regression.
We have been using SetInputFilter DEFLATE with gzip-encoded POST bodies with
great success for many months on Linux with Apache 2.2.22. We also have been
using it on Windows 7 with 2.4.2 with no problems for the same period.
We recently updated both to 2.4.6 and started having problems with truncated
POSTs -- it took a while to boil it down because at first it seemed coincident
with an upgrade to PHP 5.5 however I've made an isolated test case that just
uses CGI to rule out PHP entirely so I'm pretty sure recent changes to
mod_deflate.c are responsible.
Here's a quick hack I used to reproduce the problem on Windows
httpd.conf snip:
Alias /inflate/ "S:/InflateTests/"
<Directory "S:/InflateTests">
SetInputFilter DEFLATE
Options +ExecCGI
AddHandler cgi-script .pl
Order allow,deny
Allow from all
Require all granted
</Directory>
echo.pl:
#!d:/Perl/perl/bin/perl.exe
print "Content-Type: text/plain\n\n";
$len = 0;
while (<>) { print; $len += length($_); }
print("$len bytes echoed\n");
repro steps:
I used mod_deflate.c as a test upload
1) wget -O- --post-file=mod_deflate.c http://localhost/inflate/echo.pl
... echoes full file, 58603 bytes echoed
2) gzip -n mod_deflate.c
3) wget -O- --post-file=mod_deflate.c.gz --header="Content-Encoding: gzip"
http://localhost/inflate/echo.pl
... echoes about half of the file, 32480 bytes echoed
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic