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

snvsync fails when no read permissions on trunk

From: Thomas Quinot <quinot_at_adacore.com>
Date: 2007-10-08 19:24:59 CEST

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.

Thomas.

-- 
Thomas Quinot, Ph.D. ** quinot@adacore.com ** Senior Software Engineer
               AdaCore -- Paris, France -- New York, USA



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

  • text/plain attachment: dump
Received on Mon Oct 8 19:25:05 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.