[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Old repository

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Fri, 05 Feb 2010 11:33:09 -0500

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 <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2010-02-05 17:33:56 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.