Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2005 15:27:26 +0100
From:      Ceri Davies <ceri@submonkey.net>
To:        Dan Langille <dan@langille.org>
Cc:        FreeBSD Gnats Submit <freebsd-gnats-submit@FreeBSD.org>
Subject:   Re: www/79659: cvsweb cannot cope with %
Message-ID:  <20050408142726.GM19136@submonkey.net>
In-Reply-To: <42565BE1.20699.8117F07@localhost>
References:  <20050408135829.GK19136@submonkey.net> <42565BE1.20699.8117F07@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 08, 2005 at 10:24:33AM -0400, Dan Langille wrote:
> On 8 Apr 2005 at 15:13, Ceri Davies wrote:
> 
> > On Fri, Apr 08, 2005 at 02:58:29PM +0100, Ceri Davies wrote:
> > > On Fri, Apr 08, 2005 at 08:38:42AM -0400, Dan Langille wrote:
> > > > On 8 Apr 2005 at 12:24, Ceri Davies wrote:
> > > > > On Fri, Apr 08, 2005 at 10:40:09AM +0000, Dan Langille wrote:
> > > > > 
> > > > > >  Your investigation prompted me to check my local repository which 
> > > > > >  uses cvsweb-2.0.6.  cvsweb has no problem with that file.  I see that 
> > > > > >  FreeBSD is using FreeBSD-CVSweb 2.0.6.  It has a problem with that 
> > > > > >  file.
> > > > > >  
> > > > > >  This suggests that the problem may not be with cvsweb, but with 
> > > > > >  something else.  The error message:
> > > > > >  
> > > > > >  Bad Request
> > > > > >  Your browser sent a request that this server could not understand.
> > > > > >  
> > > > > >  A grep of the repo projects/cvsweb does not find "Bad Request".  This 
> > > > > >  also suggests it could be something other than cvsweb that is 
> > > > > >  displaying this message.
> > > > > 
> > > > > It's Apache.  From the CHANGES file in Apache 0.8.15:
> > > > > 
> > > > >   *) Reject paths containing %-escaped '%' or null characters [David Robinson]
> > > > > 
> > > > > Googling seems to suggest that this was done because it was deemed
> > > > > forbidden by RFC 2396, which is not the case.
> > > > 
> > > > Hold on.... why do we see the problem at www.freebsd.org but not on 
> > > > my local (private) cvsweb?  I'm running apache-1.3.33_1
> > > 
> > > Because you are not using mod_rewrite.
> > 
> > Check it out; with mod_rewrite the % needs escaping twice:
> > http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/gdb6/files/patch-i386%2525nm-fbsd64.h
> 
> Oh good!
> 
> So this is a cvsweb bug.  Thank you.

Could be argued that it's an apache configuration bug, I suppose.  Up to
one of the webmasters and scop to fight that battle though.

Ceri
-- 
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.			  -- Einstein (attrib.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050408142726.GM19136>