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

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.6.1
    • Labels:
      None
    • Sprint:
      DevTools 55
    • Critical Points:
      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

            Structure

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Structure Helper Panel