Our site uses the ConfirmAccount extension, which allows registration
requests to include a CV (supplying one is a pre-requisite for becoming
an editor on our site - normal users are registered as authors). I have
identified a problem - the response to the download request for the CV
contains a content-encoding header value of ", gzip". This befuddles
some browsers, such as FF, IE and Safari and they fail to decompress the
file.
My guess is this is an apache configuration problem or an apache bug,
but on the off-chance my guess is wrong and it has something to do with
MW configuration, I thought I would bring the issue up here. If this is
not an MW problem, then confirmation of that will narrow down the search
space for a solution.
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 have posted a query about the problem on
http://groups.google.com/group/
comp.infosystems.www.servers.unix, but have not received a response. (I
posted the query over two weeks ago).
This problem occurs on both our live wiki, which runs on 1.13.2 as well
as our test wiki, which runs on 1.16.2. The apache version is 2.2.3.
--
-- Dan Nessett