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

'svn cp wc wc' requires repository access

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.x
    • Fix Version/s: 1.5.0
    • Component/s: libsvn_client
    • Labels:
      None

      Description

      It is easy to reproduce the repository access using:
      
      # svn --username guest co
      http://sharpsvn.open.collab.net/svn/sharpsvn/trunk/scripts/ scripts
      # cd scripts
      # svn --username nobody cp scripts/MergeTracking-Demo scripts/new
      A         scripts/new
       Authentication realm: <http://sharpsvn.open.collab.net:80> CollabNet
      Subversion Repository
       Password for 'nobody':
       (press enter a few times)
       <snip>
       svn: OPTIONS of
      'http://sharpsvn.open.collab.net/svn/sharpsvn/trunk/scripts/MergeTracking-De
      mo': authorization failed (http://sharpsvn.open.collab.net)
      
      (svn returns with errorcode 1)
      
      The directory is copied, but an error is returned.
      
      And it is explicitly documented as:
      # svn help cp
      <snip>
      WARNING: For compatibility with previous versions of Subversion,
      copies performed using two working copy paths (WC -> WC) will not
      contact the repository.  As such, they may not, by default, be able
      to propagate merge tracking information from the source of the copy
      to the destination.
      <snip>
      
      
      This breaks existing c implementations of the client api as they do not
      expect wc -> wc copy operations to require authorization (was always
      non-interactive) and don't ignore new errors.
      
      
      I tried to get some usefull information in the svn:mergeinfo property using
      the wc->wc copy in different scenarios (allowing repository access) but I
      always get an empty svn:mergeinfo property. (Don't know why it would contact
      the repository to get nothing; but perhaps that is an 1.4-1.5 interop issue)
      
      Overall it makes copying/moving wc files quite a lot slower in 1.5 over 1.4
      on webdav repositories.
      
      More information in the mailinglist thread available via:
      http://svn.haxx.se/dev/archive-2008-03/0570.shtml
      

      http://svn.haxx.se/dev/archive-2008-03/0570.shtml

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rhuijben Bert Huijben
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: