Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-4121

svnsync fails to sync copy and delete of unreadable child

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • trunk
    • 1.7.x
    • svnsync
    • None

    Description

      Reported on IRC as http://boinc.berkeley.edu/svn/@r6540
      
      Assuming no read permission for /foo/bar, a revision that does:
         A /goo (from /foo:1)
         D /goo/bar
      fails to sync:
      subversion/libsvn_ra_svn/client.c:2440: (apr_err=210008)
      svnsync: E210008: Error while replaying commit
      
      Reproduction:
      
      [[[
      #!/bin/sh
      set -eux
      
      U_local=file://$(pwd)/r1
      U_ra=svn://localhost/r1
      U_mirror=file://$(pwd)/r2
      
      ra_flags="--username=harry --password=h --no-auth-cache --config-dir=$(pwd)/cfg"
      
      rm -rf r1 r2 wc1 cfg
      $SVNADMIN create r1
      cat <<EOF > r1/conf/svnserve.conf
      [general]
      auth-access = write
      passwd-db = passwd
      authz-db = authz
      EOF
      cat <<EOF > r1/conf/passwd
      [users]
      harry = h
      EOF
      cat <<EOF > r1/conf/authz
      [/]
      * = r
      [/A]
      * =
      EOF
      
      $SVN mkdir -q -mm $U_local/A
      $SVNMUCC -mr2 -U $U_local cp HEAD / branch rm branch/A
      
      $SVN log -v $U_local
      $SVN log -v $U_ra $ra_flags
      
      $SVNADMIN create r2
      ln -s $(which true) r2/hooks/pre-revprop-change
      $SVNSYNC init $U_mirror $U_ra $ra_flags
      $SVNSYNC sync $U_mirror $U_ra $ra_flags
      ]]]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            danielsh Daniel Shahaf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: