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

SVN Repository located at webroot and 301 errors.

From: Edward Rudd <eddie_at_omegaware.com>
Date: 2004-03-22 23:28:55 CET

I was setting up subversion with an svn.myhost.tld setup using location
in apache 2

<Location />
   DAV svn
   SVNParentPath /path/to/repos

# All the standard auth stuff here
</Location>

and things work fine for almost all activities on the repository.
for example a CO normal operations on the /trunk work as expected.
svn co http://svn.myhost.tld/project1/trunk project1
as well as a log
svn log http://svn.myhost.tld/project1/trunk project1

However if I try to do
svn log http://svn.myhost.tld/project1/
I receive a 301 message when the svn client tries to access
http://svn.myhost.tld/project1
and the 301 redirects to
http://svn.myhost.tld/project1/

I temporarily changed the location to /svn and ran the svn log command
on the root of the repository (http://svn.myhost.tld/svn/project1/) and
it worked as it should.
Then i changed it back to /, and looked at my access logs and recreated
the query with telnet
# telnet svn.myhost.tld http
PROPFIND /project1/!svn/vcc/default HTTP/1.0
Host: svn.myhost.tld
Depth: 1

And the expected output resulted.
Or
PROPFIND /project1/ HTTP/1.0
Host: svn.myhost.tld
Depth: 1

So it seems as though the client not sending the trailing / is causing
the problems OR the client should follow the 301 redirect.

-- 
Edward Rudd <eddie@omegaware.com>
Website http://outoforder.cc/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 22 23:36:20 2004

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

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