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

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

From: Stefan Kueng <tortoisesvn_at_gmail.com>
Date: Tue, 16 Dec 2008 17:30:14 +0100

si wrote:
> 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...

You should report this to the Subversion mailing list.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=985079
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2008-12-16 17:30:58 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.