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

Exception when executing "configure mirrored repos" with old organisation sync configuration

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.7
    • Labels:
      None
    • Sprint:
      DevTools 64
    • Critical Points:
      0

      Description

      Changes made to add support for GitLab mirroring included looking up the mirror script that created an organisation sync config by the class name stored in the configuration.

      When Stash became Bitbucket, some classes moved packages (including the mirror scripts)

      Therefore it is possible that customers will have organisation sync configs with the "canned-script" parameter referring to the wrong path for the mirror class.

      The above causes a class resolving exception at runtime when executing "Configure mirrored repos"

      java.lang.Exception: Class com.onresolve.scriptrunner.canned.stash.admin.mirror.GitHubMirrorCannedScript could not be found, or could not be compiled
      	at sun.reflect.GeneratedConstructorAccessor778.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at com.onresolve.scriptrunner.canned.bitbucket.admin.mirror.ConfigureMirroredRepos.mirrorCannedScriptNameToMirrorType(ConfigureMirroredRepos.groovy:110)
      	at com.onresolve.scriptrunner.canned.bitbucket.admin.mirror.ConfigureMirroredRepos.projectToView(ConfigureMirroredRepos.groovy:94)
      

        Attachments

          Activity

            People

            Assignee:
            rlander Reece Lander
            Reporter:
            rlander Reece Lander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: