
* subversion/tests/cmdline/authz_tests.py
  (delete_with_no_read_access_at_repo_root,
   delete_multi_with_no_read_access_at_repo_root): New tests.
  (test_list): Add them.
--This line, and those below, will be ignored--

Index: subversion/tests/cmdline/authz_tests.py
===================================================================
--- subversion/tests/cmdline/authz_tests.py	(revision 1373066)
+++ subversion/tests/cmdline/authz_tests.py	(working copy)
@@ -1451,6 +1451,53 @@ def remove_subdir_with_authz_and_tc(sbox
                                         None, None, False,
                                         wc_dir)
 
+# Test for a 1.7 regression identified by Dmitry Pavlenko in dev@
+# email 'svn delete fails with "403 Forbidden" if root is not readable'
+# on 2012-08-06.  Subversion should not require read access to the
+# repository root in order to delete a file in a directory that has
+# read-write access.
+@Skip(svntest.main.is_ra_type_file)
+def delete_with_no_read_access_at_repo_root(sbox):
+  "delete_with_no_read_access_at repo root"
+
+  sbox.build(create_wc = False)
+  root_url = sbox.repo_url
+
+  write_authz_file(sbox, {'/': '* =',
+                          '/A/B': 'jrandom = rw'})
+  write_restrictive_svnserve_conf(sbox.repo_dir)
+
+  # Do some deletes where the nearest common parent is writable but the
+  # directory above that and the repository root are not even readable.
+
+  svntest.main.run_svn(None, 'rm', '-m', '',
+                       root_url + '/A/B/lambda')
+
+# Test for a 1.7 regression identified by Dmitry Pavlenko in dev@
+# email 'svn delete fails with "403 Forbidden" if root is not readable'
+# on 2012-08-06.  Subversion should not require read access to the
+# repository root in order to delete files from two different
+# subdirectories, if the nearest common parent directory has
+# read-write access.
+@Skip(svntest.main.is_ra_type_file)
+def delete_multi_with_no_read_access_at_repo_root(sbox):
+  "delete_multi_with_no_read_access_at repo root"
+
+  sbox.build(create_wc = False)
+  root_url = sbox.repo_url
+
+  write_authz_file(sbox, {'/': '* =',
+                          '/A/D': 'jrandom = rw'})
+  write_restrictive_svnserve_conf(sbox.repo_dir)
+
+  # Do some deletes where the nearest common parent is writable but the
+  # directory above that and the repository root are not even readable.
+
+  svntest.main.run_svn(None, 'rm', '-m', '',
+                       root_url + '/A/D/gamma',
+                       root_url + '/A/D/G',
+                       root_url + '/A/D/H/chi')
+
 ########################################################################
 # Run the tests
 
@@ -1480,7 +1527,9 @@ test_list = [ None,
               wc_delete,
               wc_commit_error_handling,
               upgrade_absent,
-              remove_subdir_with_authz_and_tc
+              remove_subdir_with_authz_and_tc,
+              delete_with_no_read_access_at_repo_root,
+              delete_multi_with_no_read_access_at_repo_root,
              ]
 serial_only = True
 
