You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/07/26 14:50:46 UTC

DO NOT REPLY [Bug 17722] - 413 errors not returned to browser - also fails to server errordocument if present

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=17722>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=17722





------- Additional Comments From edam@waxworlds.org  2005-07-26 14:50 -------
I vote for this bug to be fixed too! It's really annoying!

I too get this in the error log:

[Tue Jul 26 12:47:35 2005] [error] [client x.x.x.x] Request content-length of
28495103 is larger than the configured limit of 5242880

And a strace of httpd -X shows the following (with comments):

open("/home/xxx/public_html/.htaccess", O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_mode=S_IFREG|0660, st_size=818, ...}) = 0
fstat64(5, {st_mode=S_IFREG|0660, st_size=818, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40015000
read(5, "# Error documents\r\nErrorDocument"..., 4096) = 818
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40015000, 4096)                = 0
lstat64("/home/xxx/public_html/cgi-bin", {st_mode=S_IFDIR|0755, st_size=136,
...}) = 0
open("/home/xxx/public_html/cgi-bin/.htaccess", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
lstat64("/home/xxx/public_html/cgi-bin/foo.cgi", {st_mode=S_IFREG|0755,
st_size=4928, ...}) = 0
open("/home/xxx/public_html/cgi-bin/foo.cgi", O_RDONLY|O_LARGEFILE) = 5
fcntl64(5, F_DUPFD, 15)                 = 20
close(5)                                = 0
read(20, "#!/usr/bin/perl -w\n\n# This is a t"..., 4096) = 4096
close(20)                               = 0
time(NULL)                              = 1122378455
write(15, "[Tue Jul 26 12:47:35 2005] [erro"..., 139) = 139

^^^ This corresponds to the error_log entry

alarm(300)                              = 0
alarm(0)                                = 300
alarm(300)                              = 0
alarm(0)                                = 300
alarm(300)                              = 0
alarm(0)                                = 300
write(4, "HTTP/1.1 413 Request Entity Too "..., 685) = 685

^^^ This *looks* like it's trying to return something to the browser! And the
handle (4) is the same one that is all requests and responses are read
from/written to throughout the strace dump.

time(NULL)                              = 1122378455
write(17, "host-x-x-x-x.xxxxx.com"..., 263) = 263

^^^ This corresponds to the access_log entry

alarm(30)                               = 0
shutdown(4, 1 /* send */)               = 0
select(5, [4], NULL, NULL, {2, 0})      = 1 (in [4], left {2, 0})
read(4, "\231Hy\230\2710\217\253\20r\201t\3443)\227<\24XC,\2168"..., 512) = 512
select(5, [4], NULL, NULL, {2, 0})      = 1 (in [4], left {2, 0})
read(4, "\37\207\37qm\373\7\201^\254\215\272\273o\340]~\f\237>|"..., 512) = 512

^^^ These last 4 lines are then repeated, and repeated (although the actual data
changes). The handle is again 4, and the data corresponds to a file uploaded in
the request, so it looks like httpd is accepting the request!!!

I'm not that knowledgable at programming under *nix (yet), so I thought I'd post
this in case it helps anyone.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org