Login | Register
My pages Projects Community openCollabNet

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

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Back to topic list

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

Author sshnug_si
Full name si
Date 2008-12-15 15:57:17 PST
Message 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
Attachments

« Previous message in topic | 1 of 6 | Next message in topic »

Messages

Show all messages in topic

Tricky case-sensitivity issue for "Authorization failed" when using svnserve sshnug_si si 2008-12-15 15:57:17 PST
     Re: Tricky case-sensitivity issue for "Authorization failed" when using svnserve steveking Stefan Küng 2008-12-16 08:30:48 PST
     Re: Tricky case-sensitivity issue for "Authorization failed" when using svnserve Ryan Schmidt <subversion-2008c at ryandesign dot com> Ryan Schmidt <subversion-2008c at ryandesign dot com> 2008-12-19 20:41:25 PST
         Taped backup of hotcopied repository "Toal, Michael (GE EntSol, Intelligent Platforms)" <michael dot toal at gefanuc dot com> "Toal, Michael (GE EntSol, Intelligent Platforms)" <michael dot toal at gefanuc dot com> 2009-01-15 08:25:51 PST
             Re: Taped backup of hotcopied repository Andy Levy <andy dot levy at gmail dot com> Andy Levy <andy dot levy at gmail dot com> 2009-01-15 08:38:10 PST
             RE: Taped backup of hotcopied repository "Toal, Michael (GE EntSol, Intelligent Platforms)" <michael dot toal at gefanuc dot com> "Toal, Michael (GE EntSol, Intelligent Platforms)" <michael dot toal at gefanuc dot com> 2009-01-15 08:40:40 PST
Messages per page: