2010-05-02 10:51:40 |
Ian Justman |
bug |
|
|
added bug |
2010-05-02 10:51:40 |
Ian Justman |
attachment added |
|
Complete configuration for a basic test case for this bug. No changes other than username are necessary. See notes for prerequisites. http://launchpadlibrarian.net/47229685/very-basic-mpm-worker-fcgi-php5-cgi-setup.tar.gz |
|
2010-05-03 14:43:20 |
Ralf Hildebrandt |
bug watch added |
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569224 |
|
2010-05-03 14:43:20 |
Ralf Hildebrandt |
bug task added |
|
libapache2-mod-fcgid (Debian) |
|
2010-05-03 15:07:59 |
Ondřej Surý |
affects |
php5 (Ubuntu) |
libapache2-mod-fcgid (Ubuntu) |
|
2010-05-03 16:17:49 |
Bug Watch Updater |
libapache2-mod-fcgid (Debian): status |
Unknown |
Fix Committed |
|
2010-05-13 12:36:40 |
Felix Geyer |
libapache2-mod-fcgid (Ubuntu): status |
New |
Confirmed |
|
2010-05-16 11:03:05 |
Felix Geyer |
libapache2-mod-fcgid (Ubuntu): status |
Confirmed |
Fix Released |
|
2010-05-16 11:03:14 |
Felix Geyer |
nominated for series |
|
Ubuntu Lucid |
|
2010-05-16 11:11:05 |
Felix Geyer |
attachment added |
|
libapache2-mod-fcgid_2.3.4-2ubuntu0.1.debdiff http://launchpadlibrarian.net/48539046/libapache2-mod-fcgid_2.3.4-2ubuntu0.1.debdiff |
|
2010-05-16 11:26:52 |
Felix Geyer |
bug watch added |
|
http://issues.apache.org/bugzilla/show_bug.cgi?id=48021 |
|
2010-05-16 11:26:52 |
Felix Geyer |
bug task added |
|
mod-fcgid |
|
2010-05-23 17:54:56 |
Felix Geyer |
summary |
Uploads greater than 64 kilobytes corrupted under PHP 5.3.2 |
Uploads greater than 64 kilobytes corrupted when using Apache mod_fcgid |
|
2010-05-23 17:57:56 |
Andreas Wenning |
bug task added |
|
libapache2-mod-fcgid (Ubuntu Lucid) |
|
2010-05-23 18:27:52 |
Felix Geyer |
attachment added |
|
modfcgid_testcase.tar.gz http://launchpadlibrarian.net/48980040/modfcgid_testcase.tar.gz |
|
2010-05-23 18:33:16 |
Felix Geyer |
description |
Binary package hint: php5
I run a Mediawiki server which I just recently upgraded to Lucid Lynx. My wiki's users originally reported issues with uploading PNGs, but further testing on the actual server along with a VM show that it is not MediaWiki itself that is doing this but PHP. Using a very simple HTML and PHP script setup, I uploaded several files, mainly images but I also uploaded .ZIP files as well. Under PHP 5.3.2 even using either my full live system or a very basic setup*, all files greater than 64 kilobytes were corrupted at about the 64 kilobyte mark. The amount of corrupted data varies but it doesn't appear to be more than about 32 kilobytes.
However, in stark contrast, PHP 5.2.10 in Karmic Koala running in another VM works just fine using the exact same "very basic setup".
Both of these setups are running x86-64 installs. I have yet to try x86-32 installs.
This might be an upstream issue in PHP 5.3.2 since they ditch mime_magic in favor of fileinfo, so I am going to test this in other distributions, notably Debian.
-----
*The "very basic setup" requires the following packages and their dependencies be present per my own production setup:
php5-cgi
apache2-mpm-worker
libapache2-mod-fcgid
Note that in Lucid Lynx, I do NOT include any other PHP modules, including Suhosin.
Optionally, I add apache2-custom-suexec (which is required on my production setup because I do not use /var/www but /home/wwwhome).
The changes to the default setup involve adding a few lines to /etc/apache2/sites-available/default, a few files and a directory in /var/www, along with chowning -R ianj:ianj the entire /var/www hierarchy, then enabling suexec. The configs and /var/www hierarchy set up appropriately are in the attached tarball and is unpacked in /. It assumes the username "ianj" who is in group "ianj". Adjust system or configs to suit. |
Binary package hint: php5
I run a Mediawiki server which I just recently upgraded to Lucid Lynx. My wiki's users originally reported issues with uploading PNGs, but further testing on the actual server along with a VM show that it is not MediaWiki itself that is doing this but PHP. Using a very simple HTML and PHP script setup, I uploaded several files, mainly images but I also uploaded .ZIP files as well. Under PHP 5.3.2 even using either my full live system or a very basic setup*, all files greater than 64 kilobytes were corrupted at about the 64 kilobyte mark. The amount of corrupted data varies but it doesn't appear to be more than about 32 kilobytes.
However, in stark contrast, PHP 5.2.10 in Karmic Koala running in another VM works just fine using the exact same "very basic setup".
Both of these setups are running x86-64 installs. I have yet to try x86-32 installs.
This might be an upstream issue in PHP 5.3.2 since they ditch mime_magic in favor of fileinfo, so I am going to test this in other distributions, notably Debian.
-----
Testcase to reproduce the bug:
- install the following packages: php5-cgi apache2-mpm-worker libapache2-mod-fcgid
- download the testcase from comment #13: http://launchpadlibrarian.net/48980040/modfcgid_testcase.tar.gz
- extract it to /
- execute the command: sudo chown -R www-data:www-data /var/www && sudo service apache2 restart
- go to http://localhost/upload.html and upload a file that is larger than 64KB
- compare the md5sum of the original file with the uploaded file in /var/www/upload/, if they match the bug is fixed |
|
2010-06-01 10:56:31 |
Martin Pitt |
libapache2-mod-fcgid (Ubuntu Lucid): status |
New |
Fix Committed |
|
2010-06-01 10:56:36 |
Martin Pitt |
tags |
|
verification-needed |
|
2010-06-03 20:34:44 |
Paul Elliott |
tags |
verification-needed |
verification-done |
|
2010-06-04 08:36:16 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/lucid-proposed/libapache2-mod-fcgid |
|
2010-06-08 09:56:27 |
Launchpad Janitor |
libapache2-mod-fcgid (Ubuntu Lucid): status |
Fix Committed |
Fix Released |
|
2010-06-19 09:39:55 |
Benjamin Drung |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2011-03-02 16:21:47 |
Bug Watch Updater |
mod-fcgid: status |
Unknown |
Fix Released |
|
2011-08-11 05:42:44 |
Bug Watch Updater |
libapache2-mod-fcgid (Debian): status |
Fix Committed |
Fix Released |
|