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

Tricky case-sensitivity issue for "Authorization failed" when using svnserve

From: si <sshnug.si_at_gmail.com>
Date: Tue, 16 Dec 2008 10:27:16 +1030

Greetings,
One of our developers fell into the following trap, it's the second time
I've seen it happen, albeit in the 5-6 years we've been using Subversion,
but I'd thought it worth mentioning.

Summary: Checkout and Update will work fine if the repository name in the
URL is incorrect due to case-sensitivity, but Commit will fail if repository
name is specified in authz-db.

Steps to reproduce:

svnserve is running on localhost

cd \temp
svnadmin create testrepo
edit svnserve.conf - enable password-db and authz-db
edit password-db - enable user harry
edit authz-db so that testrepo is a named repository
[testrepo:/]
harry = rw
* =

svn co svn://localhost/TESTREPO wc --username harry --password harryssecret
Checkout out revision 0.
svn up wc
At revision 0.
echo > wc\test.txt
svn add wc\test.txt
A wc\test.txt

svn ci wc --username harry --password harryssecret -m "add test"
svn: Commit failed (details follow):
svn: Authorization failed

Problem can be easily fixed by relocating working copy:

svn switch --relocate svn://localhost/TESTREPO svn://localhost/testrepo wc
svn ci wc --username harry --password harryssecret -m "add test"
Adding wc\test.txt
Transmitting file data .
Committed revision 1.

Hope that saves someone else some frustration.

Personally I would have expected the checkout or update to fail, so that the
read operation is working the same as the write operation...

-- 
It's a wild world that we live in, you step to the vibe like a new
found religion, take your position, compile your vision, futurism,
algorithm has risen up!                                pfm - the western
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=984726
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2008-12-16 00:57:26 CET

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

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