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

Re: snvsync fails when no read permissions on trunk

From: David Glasser <glasser_at_davidglasser.net>
Date: 2007-10-08 19:27:03 CEST

On 10/8/07, Thomas Quinot <quinot@adacore.com> wrote:
> We have come across an issue trying to use svnsync to synchronize
> a repository where the user doing the syncrhonization has read
> permissions on some selected subtrees of the repository, but not on the
> repository root or top-level trunk.
>
> To reproduce:
>
> 1. set up master repo
>
> 2. load attached dump
>
> 3. configure access control
>
> [/]
> *=
> [/trunk/module]
> *=r
>
> 4. check that the access control is properly enforced
>
> svn ls svn+ssh://localhost/path/to/master
> --> svn: Authorization failed
>
> svn ls svn+ssh://localhost/path/to/master/trunk/module
> --> README
>
> 5. set up slave repo
>
> $ svnsync init file:///path/to/slave svn+ssh://localhost/path/to/master
> --> Copied properties for revision 0.
>
> 6. launch sync
> $ svnsync sync file:///path/to/slave svn+ssh://localhost/path/to/master
> --> svnsync hangs because it fails to execute the open-dir operation
> on non-existent directory 'trunk' (because it never saw the
> directory creating operation, having no visibility on it)
>
> Proposed fix is for svnsync to create any directory that does not exist
> at the time it tries to open it. Diff attached, which seems to work
> correctly on my setup.

This does seem like a bug.

However, I'm not sure --- should this be fixed at the tool level in
svnsync or at the repos level in svn_repos_replay?

--dave

-- 
David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 8 19:27:13 2007

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