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

authz path wildcards with backreferences

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: trunk
    • Fix Version/s: 1.10-consider
    • Component/s: libsvn_repos
    • Labels:
      None

      Description

      I've been managing an academic installation where several users need access to
      their own paths in the repository, but to nobody else's.  Our authz file looks
      something like:
      
      # One for each student
      [/student/jstudent]
      jstudent = rw
      
      [/student/scoobydoo]
      scoobydoo = rw
      # and so on...
      
      # One for each student
      [/student/jstudent/project1/tags/final]
      jstudent = r
      
      [/student/scoobydoo/project1/tags/final]
      scoobydoo = r
      # and so on...
      
      As is readily obvious, this approach becomes very tedious, very quickly.  What
      would be great is a wildcard mechanism for the username, something like:
      
      [/student/$user]
      $user = rw
      
      [/student/$user/project1/tags/final]
      $user = r
      
      Looking into the way that our authorization code checks access, this isn't as
      straight forward as one would think, mainly due to authz file caching and path
      lookup.  I'm filing this issue so I don't forget the idea, and so I can attach
      some tests to it.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hwright Hyrum Wright
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: