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

RE: file:/// protocol based svn repository questions

From: Jeff Marver <jmarver_at_serlio.com>
Date: Thu, 18 Mar 2010 08:29:28 -0500

Hi David,

Thanks for the info!

Regards,

Jeff Marver | Serlio Software Development Corporation | 414-771-1452 x224
Easily create great Use Cases and Requirements - www.casecomplete.com

-----Original Message-----
From: David Weintraub [mailto:qazwart_at_gmail.com]
Sent: Wednesday, March 17, 2010 4:57 PM
To: Jeff Marver
Cc: users_at_subversion.apache.org
Subject: Re: file:/// protocol based svn repository questions

You should NEVER use the file:// protocol unless you are the only
person using the repository, and the repository is only accessible by
you.

The file:// protocol requires read and write permissions on all files
in the repository for the user who is doing the committing. This means
that instead of using Subversion commands, the user can munge the
repository directly. For example, the user could copy the repository,
manipulate the items in it, and then replace it with the munged copy.

Even worse, if user "bob" does a commit, the version file is now owned
by "bob", and if the rights aren't setup correctly, only "bob" might
be able to read and write that version.

I don't know if there are concurrency issues, but I don't even use
file:// when I am creating my own temporary repositories.

I understand why you may not want to use Apache's http as your server.
That can be a bit of a bear to setup. However, the svnserve server is
quick and simple to setup. It is definitely easier to use than shared
Windows directories and affords you full client/server protection.

You should seriously consider not using the file:// protocol.

On Wed, Mar 17, 2010 at 11:30 AM, Jeff Marver <jmarver_at_serlio.com> wrote:
> Hi all,
>
>
>
> We're using SharpSVN.SvnRepositoryClient.CreateRepository to create file:///
> protocol based svn repositories on shared Windows network drives. Can anyone
> tell me the exact permissions a Windows user will need to fully interact
> with the repository? We're recently run into a user that was able to lock a
> file but couldn't do a commit, the error indicated that the commit failed
> and a .tmp file couldn't be moved since it already existed in txn-current?
> The customer indicated that they had read and write access??
>
>
>
> Also, I've seen quite a few posts on the Internet suggesting that sharing a
> file:/// protocol based svn repository is not recommended for multiple users
> and even discouraged. Can anyone confirm or refute this information?
>
>
>
> Thanks!
>
>
>
> Jeff

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2010-03-18 14:29:29 CET

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