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

Repository move exposes a switch --relocate bug (or

From: Ben Reser <ben_at_reser.org>
Date: 2007-03-18 08:26:47 CET

$ svn sw --relocate https://svn.collab.net/repos https://www.red-bean.com
svn: PROPFIND request failed on '/svn'
svn: Repository moved permanently to 'https://www.red-bean.com/svn/';
please relocate

If you go to https://www.red-bean.com/svn (note the lack of the
trailing slash and https) you'll
get a redirect to the URL with a trailing slash.

Transcript, captured from Firefox showing the redirect:
GET /svn HTTP/1.1
Host: www.red-bean.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US;
rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 301 Moved Permanently
Date: Sun, 18 Mar 2007 06:49:15 GMT
Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8c DAV/2
SVN/1.4.3 PHP/5.2.0 mod_python/3.2.10 Python/2.4.4
Location: https://www.red-bean.com/svn/
Content-Length: 237
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

I don't think our switch should be crapping out on a redirect to a URL
that only differs by the trailing slash. It's a fairly standard
configuration of Apache to rewrite URLs without the trailing slash to
include it and then redirect. Apache's documentation even shows you
how to do it as a common configuration:

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
(See: Trailing Slash Problem).

Our current canonicalization rules remove any trailing slashes.
Considering that it'd be obviously difficult to change the
canonicalization rules at this point. I suspect that we ought to
follow some redirects. At a minimum redirects that differ only by a
trailing slash.

In the interim, if someone who has access to the red-bean config can
remove the rewrite rules that add the trailing slash so we can use svn
sw --relocate it would be appreciated. Of course removing them
outright will probably break something else. Making it so that
requests other than GET don't rewrite URLs would probably be enough to
get this working.

But I still think this is a bug and we should look at fixing it client side.

(A side note, I think while our error messages have improved. Boy was
that error message confusing. It's telling me to do what I'm trying
to do.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 18 08:27:06 2007

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