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

SimpleUserAccessGrant class not found when cloning a repo with branch permissions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.9.0, 6.14.0
    • Fix Version/s: 6.15.0
    • Labels:
      None
    • Sprint:
      DevTools 91
    • Critical Points:
      3

      Description

      Steps to Reproduce

      Provide a detailed step-by-step process to reproduce the problem.

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

      Expected Behaviour

      The repository is successfully cloned.

      Actual Behaviour

      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

              Assignee:
              rlander Reece Lander
              Reporter:
              lwonnacott Lee Wonnacott
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: