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

[PATCH] issue 2486: Svnserve 1.3 authz: writing on subfolder requires read access on repository root (repost)

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2006-04-03 20:46:28 CEST

Hi,

this patch has been sitting on the mailing list for over a month now. People
have been asking about it alot so I hope somebody finds the time to review
and - if accepted - commit it.

Previous discussion on this patch can be found here:
http://svn.haxx.se/dev/archive-2006-03/0003.shtml
http://svn.haxx.se/dev/archive-2006-01/0704.shtml

In short, the problem is that the commit-editor with the new authz code in
svnserve 1.3 requests read-access on a folder, for just opening it
(open_root, open_directory). The result is that, to use the authz code in
svnserve, you have to give all users readaccess on root!

This patch removes these readaccess checks, as they are not needed for just
traversing a folder.

Python tests are included.

regards,

Lieven.

[[[
Fix for issue #2486: Svnserve 1.3 authz: writing on subfolder requires read
access on repository root
Removed overly restrictive tests for read access when opening root or
opening a directory.
  
Patch by: Lieven Govaerts <lgo@mobsol.be>

* subversion/libsvn_repos/commit.c:
  (open_root): removed check on read access
  (open_directory): removed check on read access
  
* subversion/tests/cmdline/authz_tests.py:
  new file, contains tests for issue #2486.
  
* subversion/tests/cmdline/svntest/actions.py:
  (run_and_verify_commit): add --username and --password parameters to the
   commit.
   
* subversion/tests/cmdline/svntest/main.py:
  (get_authz_file_path): new function
  (get_svnserve_conf_file_path): new function
  
* subversion/tests/libsvn_repos/repos-test.c:
  (commit_editor_authz): removed a now obsolete part of the test.
]]]

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

Received on Mon Apr 3 20:50:21 2006

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.