Bert Huijben wrote:
> Can you make opening an ra session (like this):
> 
> $ svn export http://svn.collab.net/repos/svn/trunk/COMMITTERS
> 
> svn: OPTIONS of 'http://svn.collab.net/repos/svn/trunk/COMMITTERS': 200
> OK (http://svn.collab.net) 
> 
> return some other output?
> 
> Presumably, it should be possible to reroute the OPTIONS request to a
> cgi script that returns a different error?

I honestly don't know how to do what you're asking.  CGI scripts only run
(as far as I know) when a GET or POST request comes in.

I just now added to the configury on svn.collab.net logic to bounce every
non-GET request aimed at that old repository URL as a 403 Access Denied.  I
tried adding a custom ErrorDocument handler for 403's in that location, but
either Apache didn't use it or Subversion didn't display it -- either way my
custom text didn't show in the 'svn' client output.

So anyway, now if you hit one of the old repos URLs with a web browser (a
GET request), you see the redirection CGI script I already had in place.

If you hit it with a Subversion client (which will try an OPTIONS request
first), you see:

   svn: Server sent unexpected return value (403 Forbidden) in response
   to OPTIONS request for 'https://svn.collab.net/repos/svn'

That might be the best I can do for now.

-- 
C. Michael Pilato <cmpil...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to