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

Path-based auth: delayed access grants can cause post-commit failure.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.x
    • Fix Version/s: 1.7.0
    • Component/s: src
    • Labels:
      None

      Description

      I stumbled across this issue this morning, and am assembling this report looking
      at bash history.  The scenario goes like so.
      
      Given, a repository with trunk/tags/branches, plus trunk/foo and
      trunk/foo/bar.  User "luser" has access to everything *except*
      trunk/foo/bar.  User "root" has access to everything.
      
      Our luser does a checkout, and gets everthing but bar:
      
         $ svn co --username luser REPOS-URL wc
         A  wc/trunk
         A  wc/trunk/foo
         A  wc/branches
         A  wc/tags
      
      Checking the .svn/entries file for foo/ shows that bar is indeed absent:
      
         ...
         <entry
            name="bar"
            kind="dir"
            absent="true"/>
         ...
      
      Now, root comes along on this working copy and does a copy + commit:
      
         $ svn cp wc/trunk wc/tags/my-tag
         $ svn ci --username root -m "Tag it"
         Adding         tags/my-tag
         svn: Commit succeeded, but other errors follow:
         svn: Error bumping revisions post-commit (details follow):
         svn: Working copy '/home/cmpilato/tests/wc/tags/my-tag/foo/bar' not locked
      
      Uh-oh.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cmpilato C. Michael Pilato
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: