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

apache + svn proxy does not work when repository name is used in the path inside repository.

From: Iliyan Osenski <iosenski_at_axway.com>
Date: Tue, 18 Jan 2011 18:00:00 +0200

Hello All,
We have problem with our svn replication when using apache's svn replication described here:

http://www.slideshare.net/normanmaurer/apacheconeusvnreplication

Everything is going quite well except one little thing:
For one repository we cannot commit using the svn proxy because of the following problem that we found in svn:
If the repository name is used int the URL,  somewhow this name is lowercased.
This creates the following confusion (I used trash repository to demonstrate this):

First we checkout the repository and everything is fine:

iliyan@testmachine:~/work/svn/test_trash$ svn co http://sfsvn/trash
A    trash/Test
A    trash/Test/z
Checked out revision 4.

Then we add to svn trunk/Trash directory which contains the name of the repository.
iliyan@testmachine:~/work/svn/test_trash$ cd trash/
iliyan@testmachine:~/work/svn/test_trash/trash$ mkdir -p trunk/Trash
iliyan@testmachine:~/work/svn/test_trash/trash$ svn add trunk/
A         trunk
A         trunk/Trash

iliyan@testmachine:~/work/svn/test_trash/trash$ svn commit -m "test"
Adding         trunk
Adding         trunk/Trash

Committed revision 5.

iliyan@testmachine:~/work/svn/test_trash/trash$ ls -l
îáùî 0
drwxr-xr-x 3 iliyan iliyan 24 2010-12-10 13:42 Test
drwxr-xr-x 4 iliyan iliyan 16 2010-12-10 13:43 trunk

Then we create example file trash.txt:

iliyan@testmachine:~/work/svn/test_trash/trash$ cd trunk/Trash/
iliyan@testmachine:~/work/svn/test_trash/trash/trunk/Trash$ touch ./trash.txt
iliyan@testmachine:~/work/svn/test_trash/trash/trunk/Trash$ svn add trash.txt
A         trash.txt                                                                                                          

After that we commit the file and here is the error (please note the lowered case in the path):

iliyan@testmachine:~/work/svn/test_trash/trash/trunk/Trash$ svn commit -m "z"
Adding         Trash/trash.txt
Transmitting file data .svn: Commit failed (details follow):
svn: A MERGE response for '/trash/trunk/trash/trash.txt' is not a child of the destination ('/trash/trunk/Trash')


To observe the problem in more details I enabled debug information from /etc/subvsersion/server by adding: neon-debug-mask = 1000

This produced the debug info (see attached file). The last xml request have the name incorrect.



Any help on this is highly appreciated. Please note that we tried many different svn and apache versions, and the result is always the same.

We are using SLES 10.3 as our svn servers.
The svn version is:
The apcahe version is:

--
Iliyan.

Received on 2011-01-18 17:04:05 CET

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.