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

Inconsistency between "svn list" and "svn checkout"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.x
    • 1.6.15
    • cmdline client
    • None

    Description

      According to the documentation, the "svn list" command should "list each TARGET
      file and the contents of each TARGET directory as they exist in the repository."
      This does not seem to be true for repositories with path-based authorization.
      
      In contrast to checkout operations, which skip subfolders of a given repository
      that the respective user does not have access to, the list command breaks on the
      first inaccessible subdiretory.
      
      This can be reproduced with the following simple command (thanks to Daniel
      Shahaf for confirming):
      
        $svn ls -R http://svncorp.org/svncorp/svn/trunk
        ..
        subversion/svn/list-cmd.c:289
        subversion/libsvn_client/list.c:272
        subversion/libsvn_client/list.c:107
        subversion/libsvn_client/list.c:73
        ...
        svn: access to '/svncorp/svn/trunk/private' forbidden
      
      In contrast, a checkout operation on the same repository will successfully
      retrieve all the files an anonymous user has access to, skipping the "private"
      folder:
      
        $svn co http://svncorp.org/svncorp/svn/trunk
        ...
        Checked out revision 284.
      
      I suggest to let the list command continue even if a certain subfolder is
      inaccessible. See also the discussion at
      <http://svn.haxx.se/users/archive-2010-09/0257.shtml>.
      

      http://svn.haxx.se/users/archive-2010-09/0257.shtml

      Original issue reported by sidewinder

      Attachments

        Issue Links

          Activity

            People

              cmpilato C. Michael Pilato
              subversion-importer Subversion Importer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: