Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-2875

Previewing the Script Registry produces a JS error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.4.11
    • Component/s: Built-in Scripts
    • Labels:
      None
    • Sprint:
      Sprint 38 - Next
    • Critical Points:
      1.5

      Description

      To reproduce:

      • Go to Built-in Scripts > Script registry.
      • Click 'Preview'.

      What happens:

      • The following message appears in the UI:

        Sorry, something went wrong. Try refreshing the page, or switching to another section then refreshing.

        If this happens repeatedly please press F12, copy any log messages from the browser, and contact our support department.

      • The following error appears in the browser console:
        "com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126 TypeError: Cannot read property 'map' of undefined
         at t.render (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:142)
         at d (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at beginWork (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at o (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at i (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at _ (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at y (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at v (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at p (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at u (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         xr @ com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126
         com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:142 Uncaught error in ScriptRunner admin UI TypeError: Cannot read property 'map' of undefined
         at t.render (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:142)
         at d (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at beginWork (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at o (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at i (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at _ (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at y (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at v (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at p (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126)
         at u (com.onresolve.jira.groovy.groovyrunner:combinedAdminSection.js:126) Object"

      This is a difficult one to debug, because the code that throws the error is part of a very large JS file. I was able to set a breakpoint on the relevant line, but after that breakpoint got triggered and I tried to view the line again while execution was paused, the dev console hung.

        Attachments

          Activity

            People

            Assignee:
            ahasan Ashraful Hasan [X] (Inactive)
            Reporter:
            jchoules Joanna Choules
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: