Re: [PATCH] Request URI logging for malformed requests

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Tue, 01 Mar 2011 16:31:14 -0700

On 03/01/2011 11:29 AM, Tsantilas Christos wrote:
> This patch is forgotten too.
> Any comments?

IIRC, Amos and I already agreed that this functionality is the right
solution to the problem. Please commit if you are comfortable with your
changes.

Thank you,

Alex.

> On 02/01/2011 08:11 PM, Tsantilas Christos wrote:
>> Hi all,
>>
>> This patch try to implement the first option from those described at the
>> squid-dev thread with subject "Request URI logging for malformed
>> requests":
>> http://www.squid-cache.org/mail-archive/squid-dev/201101/0004.html
>>
>> The goal of this patch is to apply uri_whitespace before logging
>> malformed requests.
>>
>> Currently the logged URI set using the setLogUri method (in
>> client_side.cc and client_side_reply.cc files). Also the setLogUri
>> called at least two times for every normal request. Moreover the
>> setLogUri always check if the URI contains characters which must escaped
>> which in the case of normal requests it is not needed because
>> urlCanonicalClean always used before pass the URI to setLogUri.
>>
>> This patch:
>> - add a parameter to the setLogUri to say if the URI must cleaned and
>> the uri_whitespace filtering must applied.
>> - Remove the setLogUri call from the parseHttpRequest.
>> - Call in all cases (HTTP request error or not) the setLogUri in
>> clientProcessRequest
>> - In the case the URL is not a valid HTTP request applies the
>> uri_whitespace filtering.
>> - In the case the URI is valid the uri_whitespace filtering is not
>> required because it is already applied by the urpParse function.
>>
>>
>> Regards,
>> Christos
Received on Tue Mar 01 2011 - 23:31:25 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 02 2011 - 12:00:03 MST