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

RE: Re: Re: How to set project root directory access right?

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: 2007-10-12 14:48:07 CEST

Interesting. I thought the described behavior was as designed. Xumanjiang, the path based security inherits from higher paths. Thus, when you specify security for lower levels in the path, it overrides the higher level. Since you set the root to read only, I would expect that all subpaths to be read only unless you specify "rw" explicitly. this is exactly the behavior you described.
 
If you want the root to remain read-only, but t2 to be writeable, just add an entry for t2, just like you did for t1.
 

--
David
________________________________
	From: xumanjiang [mailto:xumanjiang@163.com] 
	Sent: Friday, October 12, 2007 12:34 AM
	To: users
	Subject: Re: Re: How to set project root directory access right?
	
	
	I am using subversion 1.4.4 on Solaris 10 x86, which was downloaded from www.sunfreeware.com.
	Client side consists of both Windows and Solaris.
	I am wondering whether any of you have met this problem before?
	Thanks!
	 
	 
	2007-10-12 
	
________________________________
	xumanjiang 
	
________________________________
	发件人: Ryan Schmidt 
	发送时间: 2007-10-12  11:54:07 
	收件人: xumanjiang 
	抄送: users 
	主题: Re: How to set project root directory access right? 
	
	
	 
	On Oct 11, 2007, at 22:49, xumanjiang wrote:
	 
	> I have met a problem if I set access right of a project's root  
	> directory to be "r" instead of "rw".  If I did that, different  
	> users will not be able to modify files in one directory.
	>
	> This is my test repository:
	>
	> / ---t1
	>   L__t2
	>
	> and the section of my authz file is:
	>
	> [test:/]
	> * = r
	>
	> [test:/t1]
	> * = rw
	> Then two users try to modify different files in same directory:
	> 1. A locks file "a.txt" in directory "t1".
	> 2. B Locks file "b.txt" in "t1".
	> 3. A and B modifies their files.
	> 4. B commits "b.txt".  (This action success)
	> 5. A commits "a.txt".  (This action fails with "Authorization failed")
	>
	> If I change the authz to:
	> [test:/]
	> * = rw
	>
	> [test:/t1]
	> * = rw
	> and redo the same step, everything is OK.
	>
	> I'm confused about the root directory access right.  Please help me.
	 
	What version of Subversion do you have? I believe this used to be a  
	problem. Upgrade to Subversion 1.4.5 if you have an earlier version.
	 
	 
	.
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
Received on Fri Oct 12 14:48:34 2007

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.