Bug 137283 - Apache does not accept uploads larger than 512kb
Apache does not accept uploads larger than 512kb
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: httpd (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-27 04:24 EDT by Florian Brand
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-10-27 05:17:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Florian Brand 2004-10-27 04:24:24 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914
Firefox/0.10.1

Description of problem:


When trying to upload a file larger than 512kb via PHP, I immediatly
get a "Document contains no data" error in any browser (tested w/
Mozilla, Opera, IE, Firefox). Tested also with another script.
PHP is configured to accept uploads up to 10MB.

Error Log Entry:
Requested content-length of 787247 is larger than the configured limit
of 524288

After some digging in the sources with Thomas Woerner, we believe the
culprit is protocol.c

We verified this problem also on FC3.

Version-Release number of selected component (if applicable):
httpd-2.0.46-40.ent

How reproducible:
Always

Steps to Reproduce:
1. have PHP script that does uploads (postnuke in our case)
2. configure PHP to accept larger uploads
3. upload file
4. Sadness. :)
    

Actual Results:  Requested content-length of 787247 is larger than the
configured limit of 524288

Expected Results:  no error?

Additional info:
Comment 1 Joe Orton 2004-10-27 05:17:40 EDT
"configured limit" -- "configured" being the important word!  In RHEL3
PHP parses request bodies in-memory, so a 512K limit is enforced by
default:

$ grep LimitRequest /etc/httpd/conf.d/php.conf
    LimitRequestBody 524288



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