[Klone-users] Bug 400 error
Mickael Auger
mickael.auger at gmail.com
Fri Apr 25 04:47:40 EDT 2008
Hi,
I use a standard Linux.
My 'post_maxisize' and 'model' values are their default value.
400 error :
I test a lot of HTTP errors, and *the 400 error*
(HTTP_STATUS_BAD_REQUEST) *kill
my "kloned" process*.
To trigger this error, I enter this address in my web-browser :
http://127.0.0.1/page.kl1?val=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.....
with 4200 'x' characters and where "page.kl1" is :
======================================
<%!
static char *value;
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<p>Hello !</p>
<%
value = request_get_arg(request,"val");
%>
</body>
</html>
======================================
If I enter the same URI with 4100 characters or less, I have any error and
it's correct.
Seeing your code of request.c (line 1355), I note that you did not verify
the length of URI and the "HTTP_STATUS_BAD_REQUEST" was the default status.
404 error limit :
I try also to enter this address in my web-browser to test the limits of 404
error :
http://127.0.0.1/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.....
with 2200 'x' characters.
*But this kill my "kloned" process.*
If I enter the same URI with 2000 characters or less, I have the 404 error
page and it's correct.
I know that my examples is exaggerated, but KLone should not killed by an
action of client.
Have you a solution or a patch ?
--
Mickaël AUGER
mickael.auger at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080425/305506a2/attachment.html
More information about the klone-users
mailing list