[PATCH] URL handling bugs

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 19 May 2011 02:52:21 +1200

This patch includes two bug fixes in URL handling which were uncovered
during testing of the URL logging update:

  * URL re-write handling was not correctly creating its adapted request
copy. The code here is much reduced by using the clone() method. Still
not completely satisfactory (marked with XXX) since on errors there is a
wasted cycles cloning.

  * URL parsing needs to set the canonical field to unset whenever the
URI is re-parsed into a request. This field is an optimization for later
display speed-ups. This has been causing bad URL display throughout
re-written request handling and when the clone() was corrected to use
urlCanonical() caused asserts in the server-side.

  This canonical change has been discussed previously. There is one
other incorrect setting of HttpRequest::canonical in icap/ModXact.cc,
but that must handle a const input which urlCanonical() function does
not yet handle.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.12
   Beta testers wanted for 3.2.0.7 and 3.1.12.1

Received on Wed May 18 2011 - 14:52:29 MDT

This archive was generated by hypermail 2.2.0 : Wed May 18 2011 - 12:00:53 MDT