You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2013/03/06 20:16:48 UTC

svn commit: r1453489 - in /subversion/branches/1.7.x-issue4332: ./ subversion/tests/cmdline/authz_tests.py

Author: cmpilato
Date: Wed Mar  6 19:16:47 2013
New Revision: 1453489

URL: http://svn.apache.org/r1453489
Log:
On the '1.7.x-issue4332' branch, merge from trunk r1452967, which
added a regression test for this issue.

Modified:
    subversion/branches/1.7.x-issue4332/   (props changed)
    subversion/branches/1.7.x-issue4332/subversion/tests/cmdline/authz_tests.py

Propchange: subversion/branches/1.7.x-issue4332/
------------------------------------------------------------------------------
  Merged /subversion/trunk:r1452967

Modified: subversion/branches/1.7.x-issue4332/subversion/tests/cmdline/authz_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/1.7.x-issue4332/subversion/tests/cmdline/authz_tests.py?rev=1453489&r1=1453488&r2=1453489&view=diff
==============================================================================
--- subversion/branches/1.7.x-issue4332/subversion/tests/cmdline/authz_tests.py (original)
+++ subversion/branches/1.7.x-issue4332/subversion/tests/cmdline/authz_tests.py Wed Mar  6 19:16:47 2013
@@ -1390,6 +1390,21 @@ def upgrade_absent(sbox):
   svntest.actions.run_and_verify_update(sbox.wc_dir, expected_output,
                                         None, None)
 
+@Skip(svntest.main.is_ra_type_file)
+@Issue(4332)
+def authz_del_from_subdir(sbox):
+  "delete file without rights on the root"
+
+  sbox.build(create_wc = False)
+
+  write_authz_file(sbox, {"/": "* = ", "/A": "jrandom = rw"})
+
+  write_restrictive_svnserve_conf(sbox.repo_dir)
+
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                      'rm', sbox.repo_url + '/A/mu',
+                                      '-m', '')
+
 ########################################################################
 # Run the tests
 
@@ -1419,6 +1434,7 @@ test_list = [ None,
               wc_delete,
               wc_commit_error_handling,
               upgrade_absent,
+              authz_del_from_subdir,
              ]
 serial_only = True