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

authz access denied when svnserve root is a repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ---
    • 1.7.2
    • libsvn_repos
    • None

    Description

      The libsvn_subr/authz.c:authz_get_tree_access doesn't work when svnserve is
      invoked with a repository as the svnserve root.
      
      svnadmin create repo
      svn mkdir --parents -mm file://`pwd`/repo/A/B/C
      
      Setup authz:
      
      [/A/B]
      pm = rw
      [/]
      pm = r
      
      svnserve -dr repo
      svn rm -mm svn://localhost/A/B/C
      svn: E220004: Access denied
      
      svnserve -dr .
      svn rm -mm svn://localhost/repo/A/B/C
      Committed revision 2.
      
      The function is_applicable_section is gets passed path_spec of "" and the code
      is obviously not going to handle that.
      
      This is a regression from 1.6. It was probably introduced by the case-sensitive
      section stuff, but I haven't checked the history.
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: