Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126155 - Apache 1.3.*: problem using ErrorDocument with LimitRequestBody directive
Summary: Apache 1.3.*: problem using ErrorDocument with LimitRequestBody directive
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL: http://issues.apache.org/bugzilla/sho...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-14 06:25 UTC by Jan Kunzmann
Modified: 2006-03-16 12:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for apache-1.3.* to fix the ErrorDocument problem (errordocument413fix.patch,405 bytes, patch)
2006-03-14 06:27 UTC, Jan Kunzmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kunzmann 2006-03-14 06:25:43 UTC
From http://issues.apache.org/bugzilla/show_bug.cgi?id=21035:
If LimitRequestBody directive is set for a apache web server with user defined ErrorDocument configured (for 413 error) and a client sends request exceeding the value set in LimitRequestBody then apache does not display the user defined ErrorDocument. It instead displays the standard 413 error document with an additional note "Additionally, a 413 Request Entity Too Large error was encountered while trying to use an ErrorDocument to handle the request."


This is an upstream problem, but as you can see in the apache bugzilla it's known to the apache developers for years without anyone caring about - although a patch is available here http://www.mail-archive.com/dev%40httpd.apache.org/msg16835.html

I always add the patch to the apache ebuild i copied from the portage to my local overlay, but it's annoying to do it every time the apache herd releases a new ebuild. 

I'd really like to see this patch included in the gentoo-apache patchset.
Comment 1 Jan Kunzmann 2006-03-14 06:27:18 UTC
Created attachment 82098 [details, diff]
Patch for apache-1.3.* to fix the ErrorDocument problem
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-03-14 17:38:51 UTC
We don't support third-party patches for apache - they become too difficult to manage (i.e. in the case of a security issue). If/when upstream fixes this is when we'll fix it.
Comment 3 Jan Kunzmann 2006-03-16 12:38:49 UTC
Okay. I just discovered the ebuild hooks. I use this feature now to apply my patch automatically after src_unpack...