Uploaded image for project: 'SR for Confluence - Development'
  1. SR for Confluence - Development
  2. SRCONF-384

Broken macro after ScriptRunner update

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.3.35, 5.4.9
    • Fix Version/s: 5.4.15, 5.4.16
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Bug fixing
    • Critical Points:
      0.5

      Description

      Tested on Versions

      • Confluence 6.2.4
      • Confluence 6.8.2
      • Atlassian Universal Plugin Manager Plugin 2.22.9 (broken)
      • Atlassian Universal Plugin Manager Plugin 2.22.1 (broken)
      • Atlassian Universal Plugin Manager Plugin 2.22.11 (works)

      Steps to Reproduce

      1. Install v*5.3.35* of ScriptRunner for Confluence
      2. Install the latest version of the Page Info plugin
      3. Stop and Start the instance.
      4. Create a test space called "Basic Test Space"
      5. Create a page in that space with the following details:
      • Title: Page Info test
      • Content: Add the Page Info macro to the test page.
      1. Update the ScriptRunner plugin

      Expected Outcome

      The update completes with no issues and no errors in the logs.

      Actual Outcome

      All macros in the system come back with "Broken Macro" error and an exception is thrown in the logs. If you use the latest version of NPM then the exception is still present in the logs, however the macro system seems to initialise properly.

      Workaround

      There are two workarounds that help either avoid or deal with this issue:

      Preventing the issue

      Updating to UPM version 2.22.11 or higher, prior to ScriptRunner update stops the error from causing the missing macro issue.

      Dealing with the issue

      If you find that the issue has occurred, disabling and then re-enabling ScriptRunner fixes the issue. In all tests performed, the act of disabling and then re-enabling ScriptRunner fixed the missing macro issue.

        Attachments

          Activity

            People

            Assignee:
            cmastoroudes Christo Sodiris Mastoroudes
            Reporter:
            scheesley Stephen Cheesley
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 minutes
                3m