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

Svnserve authz repository name problem on Windows

From: Philibert Pérusse <pperusse_at_gsmproducts.ca>
Date: 2006-03-02 00:35:27 CET

Hi,
 
I am new to the list, and actually new to subversion. I read through the
subversion book, but I still got some problems.
 
I have an issue with properly setting repository authz accesses for
different repositories under Windows. I did search on Google and this list
for answers and I found a partial one... In fact, the behavior described
there was not what I am experiencing...
 
Let me set the facts:
- I have multiple repository database on a server, say:
   D:\Disks\repos\WINCE500
   D:\Disks\repos\PAVA
   D:\Disks\repos\TestDB
- I am using SVNSERVE with path D:\Disks
- So my URLs are:
   svn://myserver/repos/WINCE500
   svn://myserver/repos/PAVA
   svn://myserver/repos/TestDB
- By the way, I am using SVN release 1.3.0
- And I am running svnserve on a Windows 2003 Server Enterprise Edition
- Then, all my repositories 'authz-db' point to the same authz file
- Actually, up until now everything is working fine. I have successful
authentication, I can read/write the repository, everything.
- Now, I want to set different authentication privileges for my 3
repositories... The authz file syntax allows me to write: [repository:/path]
and set independent privileges. So I set to this task.
- My authz is set as follows for my tests:
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
# Default Allow access for root paths
[/trunk]
myusername = rw
* = r
 
[TestDB:/trunk]
myusername =
* =
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- With this configuration, I should get refused to perform commits on TestDB
in /trunk... Unfortunately, this is not the case, my request is accepted and
executed properly...
- It is like the [TestDB:/trunk] line was not there at all.
- I read a message from David Anderson (2005-10-10) "Relative behaviours of
authz in mod_authz_svn and svnserve" that argued about a related issue.
However, in his intervention my configuration would have worked properly! He
flagged a problem if repository name is the same but the path different! My
case is the repository path the same, but the name different.
- I got down to analysing the source code and, as far as I understand it, it
should work properly.
- serve.c - find_repos() at line 2113 is using the child path as
authz_repos_name
- which is passed down to svn_repos_authz_check_access() in authz.c
- which is then supposedly using it properly!
- Then, I ask, what is my problem? Is there really a bug there? Do I miss
something? Or is this a problem between the chair and the computer screen
(me in this case)?
 
Thanks a lot, any help is appreciated.
 
philibert
 
Received on Thu Mar 2 00:36:41 2006

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.