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

Obstructed update for sub-directory incorrectly alters WC props, resulting in incomplete directory contents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 1.2.0
    • unknown
    • None

    Description

      A simplified version of a bug reported by "Michael Grundberg"
      <michaelgrundberg@hotmail.com>
      
      #!/bin/bash
      REPO=file://`pwd`/repo
      rm -rf repo wc
      svnadmin create repo
      svn mkdir $REPO/foo -m ""
      svn mkdir $REPO/foo/bar -m ""
      svn co -r1 $REPO wc
      touch wc/foo/bar
      svn up wc            # step A
      rm wc/foo/bar
      svn up wc/foo        # step B
      
      Step A fails as expected with an "obstructed update" error. The bug is that step
      B fails with
      
      ../svn/subversion/libsvn_wc/update_editor.c:994: (apr_err=155000)
      svn: Obstructed update
      svn: failed to add directory 'wc/foo': object of the same name already exists
      
      even though "svn up wc" completes without error.
      
      Step A is necessary to see the bug, it results in wc/foo being marked incomplete.
      

      Attachments

        1. 1_patch.txt
          2 kB
          Daniel Rall

        Activity

          People

            Unassigned Unassigned
            philipm Philip Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: