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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: 1.2.0
    • Component/s: unknown
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: