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

Re: Concurrent access via file and dav

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sat, 24 Dec 2011 09:01:39 -0500

On Thu, Dec 22, 2011 at 5:37 AM, Hendrik Fuß <hendrik.fuss_at_gmail.com> wrote:
> Am 22.12.2011 um 11:24 schrieb vishwajeet singh:
>
> On Thu, Dec 22, 2011 at 2:23 PM, Hendrik <hendrik.fuss_at_gmail.com> wrote:
>>
>> Hi folks,
>>
>> is it safe to access a repository via local file:// protocol on a
>> server that also runs apache2 and mod_dav_svn? I'd like to create tags
>> locally on the server to avoid some authentication headaches.
>
>
> If you are not doing any write operations that should be just fine.
>
>
> Good. Trouble is, I want to do write operations, e.g. svn copy. Is it safe
> to do that with subversion?
>
> cheers
> Hendrik

It can get tricky. If you do it *as the same user* that owns the
repository for Apache or svnserver or svn+ssh access, then you'll
probably be OK. But if you're doing access control with Apache
directives, you'll blow right post them and have some risk of doing
things you don't normally allow. And the management of "sgid"
permission bits and "umask" can get awkward.

You'll also fail to set the user attribution setting for your commits
that is normally derived from the logged in "user" for HTTPS,
svnserve, or svn+ssh authentication.

Like a magician pulling a quarter out of your ear, it can be done
gracefully and effectively, but tends to involve dropping a lot of
quarters on the floor until you've gotten some practice.
Received on 2011-12-24 15:02:17 CET

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.