Your message dated Fri, 19 Oct 2012 21:40:39 +0000
with message-id <201210192140.40232.jmv_...@nirgal.com>
and subject line Re: LimitRequestLine not taken into account when talking to
CGI script
has caused the Debian Bug report #638011,
regarding Request lines are truncated after 8k
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
638011: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638011
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: apache2-mpm-prefork
Version: 2.2.16-6+squeeze1
As of version 2.2.16, Apache applies a fixed line length limit of 8192
bytes when talking to a CGI script: in file `server/util_script.c`,
function `ap_scan_script_header_err_core`, at lines 403--433,
one can read:
char x[MAX_STRING_LEN];
char *w, *l;
[...]
if (buffer) {
*buffer = '\0';
}
w = buffer ? buffer : x;
[...]
while (1) {
int rv = (*getsfunc) (w, MAX_STRING_LEN - 1, getsfunc_data);
where `MAX_STRING_LEN` is defined in `httpd.h` to be equal to
`HUGE_STRING_LEN`, that is, 8192.
The directive `LimitRequestLine` should apply here as well, or the
documentation should make it clear that this setting does not
influence the CGI module.
I'm using Debian squeeze, with the latest updates:
$ dpkg -l apache\* | grep ^i
ii apache2 2.2.16-6+squeeze1
Apache HTTP Server metapackage
ii apache2-doc 2.2.16-6+squeeze1
Apache HTTP Server documentation
ii apache2-mpm-prefork 2.2.16-6+squeeze1
Apache HTTP Server - traditional non-threaded model
ii apache2-utils 2.2.16-6+squeeze1
utility programs for webservers
ii apache2.2-bin 2.2.16-6+squeeze1
Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-6+squeeze1
Apache HTTP Server common files
Thanks,
Riccardo
--- End Message ---
--- Begin Message ---
Package: apache2-mpm-prefork
Version: 2.2.22-1
> (...)
> The directive `LimitRequestLine` should apply here as well, or the
> documentation should make it clear that this setting does not
> influence the CGI module.
Documentation has been fixed:
git diff debian/2.2.21-5 debian/2.2.22-1 docs/manual/mod/core.html.en
<div class="note">Under normal conditions, the value should not be changed
from
- the default.</div>
+ the default. Also, you can't set this higher than 8190 without
+ modifying the source code and rebuilding.</div>
Thank you
signature.asc
Description: This is a digitally signed message part.
--- End Message ---