Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-437

SimpleUserAccessGrant class not found when cloning a repo with branch permissions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Done
    • None
    • 5.6.1
    • None
    • None
    • DevTools 55
    • 0.7

    Description

      To reproduce:

      • Set up any branch permission on a repo.
      • Go to Built-In Scripts > Clone a repository and select that repo.
      • Fill in the rest of the form and click Run.

      Expected: The repository is successfully cloned.

      Actual: The following error appears:

      Error: com/atlassian/stash/internal/repository/ref/restriction/SimpleUserAccessGrant
      java.lang.NoClassDefFoundError: com/atlassian/stash/internal/repository/ref/restriction/SimpleUserAccessGrant
      	at com.onresolve.scriptrunner.canned.bitbucket.admin.CloneRepo$_copyBranchPermissions_closure9$_closure23.doCall(CloneRepo.groovy:468)
      	at com.onresolve.scriptrunner.canned.bitbucket.admin.CloneRepo$_copyBranchPermissions_closure9.doCall(CloneRepo.groovy:467)
      	at com.onresolve.scriptrunner.canned.bitbucket.admin.CloneRepo.copyBranchPermissions(CloneRepo.groovy:466)
      	at com.onresolve.scriptrunner.canned.bitbucket.admin.CloneRepo$copyBranchPermissions$3.callCurrent(Unknown Source)
      	at com.onresolve.scriptrunner.canned.bitbucket.admin.CloneRepo.doScript(CloneRepo.groovy:215)
      

      Attachments

        Issue Links

          Activity

            People

              rlander Reece Lander
              jchoules Joanna Choules
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: