Page MenuHomePhabricator

When uploading .tar.gz files, get a generic Connection was reset error
Closed, DeclinedPublic

Description

When uploading a tar.gz file (but not a .tgz file or other files) with file extension checking turned off, I get the following standard error from the server:

The connection was reset
The connection to the server was reset while the page was loading.

This happened to me uploading from windows via firefox, and to people uploading from macs and linux machines with firefox as well. What's going on? A frustrating bug.

SJ


Version: 1.6.x
Severity: normal
OS: Linux

Details

Reference
bz7786

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:27 PM
bzimport set Reference to bz7786.
bzimport added a subscriber: Unknown Object (MLST).

Contact your system administrator and ask about security filters in your web server.
Confirm also that you're not just having a generic problem with large files.

This was caused by some subsidiary php script (likely Sanitizer) taking up more than 20M of memory, when uploading a 2M file. Why a tar.gz file would cause this to happen, when other formats such as .tgz of the same bundle would not, is confusing. Increasing the 20M limit set in LocalSettings.php to 40M fixed the problem; but I wonder why it was an issue in the first place.