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

Re: svn ls http://svn.host.tld/

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-07-29 23:47:52 CEST

On Mon, Jul 29, 2002 at 02:49:31PM -0500, Ben Collins-Sussman wrote:
> Alexy Khrabrov <alexy.khrabrov@setup.org> writes:
> > (1) For the failed top-level ls
> >
> > - - [29/Jul/2002:14:36:39 -0400] "PROPFIND /svn HTTP/1.1" 301 301
> I can't reproduce your bug. For example,
> $ svn ls http://svn.collab.net/repos/svn
> works just fine.
> The question is why a PROPFIND on /svn is returning a 301 "Moved
> Permanently" error?
> I saw something similar to this once when trying to use a dav client
> to access a mod_dav_fs location.
> I can only guess that there is something odd with your httpd or
> httpd.conf...

Nope. This is defined Apache behavior. Requesting a collection *without* a
trailing slash will cause a redirect to the same URI *with* the trailing

The simplest answer is that:


Are two *different* resources. The latter can have requests applied to it.
The former issues 301 redirects. This is well-defined and acceptable
behavior (and clients that don't deal with it are *broken*). However, there
are two problems:

1) some clients don't handle a 301 on non-GET requests well.
2) svn does not install redirect handlers during our use of Neon. I have
   never looked into how easy/hard that would be, whether it is truly
   needed, etc. Point is: Neon can(?) handle some of the redirect handling
   for us.

(2) is especially important when we want to (when?) be able to allow the
repository administrator to move their repos to a different hostname and/or
URL within the namespace. The old repos should issue a 301, and we should
continue operating from the new repository.

[ this does imply that we need a way for RA to signal the client/WC that URL
  that it is using needs to be rewritten ]


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 29 23:45:17 2002

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.