Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-10872

Opening 'Automation' tab under Insight schema configurations cause a javascript TypeError 'null' exception to be thrown in console

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 4.20.1, Insight 8.9.4, 5.0.0, 4.22.2
    • Automation

    Description

      Issue Summary

      The symptom can only manifest when the current user's database record has a different 'userkey' value than their 'username' value. New users created in an Jira instance of version 8.4+ will have such different values.

      Steps to Reproduce

      1. Create a new user with sufficient permission to create Insight schemas
      2. Login as the newly created user
      3. Create a new Insight schema
      4. Go to configurations page of the Insight schema
      5. Click to open the 'Automation' tab

      Expected Results

      There should not be any exception thrown in console.

      Actual Results

      There is an exception thrown in the console.

      com.riadalabs.jira.plugins.insight:rlabs-configure.js?locale=en-US:29974 
              
             Uncaught TypeError: Cannot read properties of null (reading '0')
          at Object.<anonymous> (com.riadalabs.jira.plugins.insight:rlabs-configure.js?locale=en-US:29974)
          at i (batch.js?locale=en-US:164)
          at Object.fireWith [as resolveWith] (batch.js?locale=en-US:164)
          at Object.<anonymous> (batch.js?locale=en-US:164)
          at i (batch.js?locale=en-US:164)
          at Object.fireWith [as resolveWith] (batch.js?locale=en-US:164)
          at Object.a.<computed> (batch.js?locale=en-US:164)
          at Object.<anonymous> (batch.js?locale=en-US:164)
          at i (batch.js?locale=en-US:164)
          at Object.add [as done] (batch.js?locale=en-US:164) 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mma Martin Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Backbone Issue Sync