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
We have problem with our svn replication when using apache's svn replication described here:
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
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/
iliyan@testmachine:~/work/svn/test_trash/trash$ svn commit -m "test"
Committed revision 5.
iliyan@testmachine:~/work/svn/test_trash/trash$ ls -l
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
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"
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:
This is an archived mail posted to the Subversion Users mailing list.