Last modified: 2012-02-12 19:36:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36254, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34254 - FileCache + Gzip outputs garbage
FileCache + Gzip outputs garbage
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.18.x
All All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-07 21:08 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-02-12 19:36 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-02-07 21:08:40 UTC
When using file cache and enabling gzip, output is garbage.

Configuration used:
$wgUseFileCache  = true;
$wgUseGzip       = true;

Had the issue with REL1_18 and trunk but not with REL1_17. So that looks like a 1.18 regression :-(
Comment 1 Aaron Schulz 2012-02-07 21:23:07 UTC
I recall this issue always being reported over the years, though I couldn't reproduce it. The things to check for are:
a) file cache code and $wgUseGzip, including ACCEPT-ENCODING handling code
b) any output buffering and gzip calls MW has...there used to be a hack in LocalSettings.php to override PHP defaults
c) the php.ini settings for output compresssion
Comment 2 Mark A. Hershberger 2012-02-08 17:55:11 UTC
still seeing this after using Aaron's suggestions?
Comment 3 Antoine "hashar" Musso (WMF) 2012-02-08 20:46:05 UTC
Requesting without accepting gzip
$ curl -s http://trunk.dev/index.php/Main_Page | tail -2
<!-- Cached/compressed 20120208070016 -->
</html>
$

When accepting gzip, I need to unzip the output twice:
$ curl -s -H 'ACCEPT-ENCODING: gzip' http://trunk.dev/index.php/Main_Page | zcat | zcat | tail -2
<!-- Cached/compressed 20120208070016 -->
</html>
$
Comment 4 Antoine "hashar" Musso (WMF) 2012-02-09 11:02:54 UTC
Patch attempt with r111028. Pending review.
Comment 5 Antoine "hashar" Musso (WMF) 2012-02-12 19:36:17 UTC
I have reverted the attempt above with r111322.  See Aaron comment on r111028.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links