https://issues.apache.org/bugzilla/show_bug.cgi?id=50935
Summary: Content-Encoding value returned by apache is malformed
Product: Apache httpd-2
Version: 2.2.3
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_deflate
AssignedTo: [email protected]
ReportedBy: [email protected]
This bug occurs on a site running the MediaWiki software and occurs for both MW
1.13.2 and 1.16.2. When a request to download a file is received, apache
returns a malformed Content-Encoding header value of ", gzip". This befuddles
some browsers (e.g., Safari, IE and Firefox), while others seem to silently
discard the leading comma (Opera and Chrome). The result is the file is
delivered to the host file system by the confused browsers in compressed form.
Since the site uses Squid, I confirmed that the problem also occurs when Squid
is bypassed.
Note: I attempted to read the bug writing help page
https://issues.apache.org/bugwritinghelp.html as I am a new bug reporter.
However, the link returns a 404 Not Found error. Here is some relevant
information that I can only suppose is useful:
Apache version: 2.2.3
PHP version: 5.3.5
OS: CentOS 5.5
Browser: various - example is for Firefox 3.6.13 running on Mac OS X 10.6.6
Here is the request and response headers (I have obscured some file and
cookie information using ellipses to ensure privacy - the output is from
HTTPFox running on Firefox):
(Request-Line) GET /wiki?title=Special:ConfirmAccounts/
editors&file=to...v.pdf HTTP/1.1
Host en.citizendium.org
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
Referer http://en.citizendium.org/wiki?title=Special:ConfirmAccounts/
editors&acrid=...
Cookie __utma=184949757....
(Status-Line) HTTP/1.0 200 OK
Date Wed, 09 Mar 2011 01:27:46 GMT
Server Apache/2.2.3 (CentOS)
X-Powered-By PHP/5.3.5
Expires Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Content-Disposition inline;filename*=utf-8'en'to...v.pdf
Last-Modified Tue, 08 Feb 2011 05:25:51 GMT
Content-Encoding , gzip
Vary Accept-Encoding
Content-Length 48636
Content-Type application/pdf
X-Cache MISS from aristotle.citizendium.org
X-Cache-Lookup MISS from aristotle.citizendium.org:80
Via 1.0 aristotle.citizendium.org:80 (squid/2.6.STABLE21)
Connection keep-alive
Note that the Accept-Encoding header in the request specifies "gzip, deflate",
while the Content-Encoding value in the response is ", gzip". I posted a query
about the problem on
http://groups.google.com/group/comp.infosystems.www.servers.unix, but did not
receive a response. (I posted the query over three weeks ago).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]