Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-54778

Can not edit User Macros after upgrading Confluence 6.6.0(User Macros broken after upgrading)

XMLWordPrintable

      Summary

      Confluence is breaking User Macros after upgrading to the 6.6.0 version. It is breaking the edition of the macro to be more specific, so if you create a macro and you want to edit it, the editing screen will hang.

      Steps to Reproduce

      1. Install Confluence 6.3.3 or 6.5.0.
        • Reproduced in both environments.
      2. Create a User Macro with the following configuration:
      3. Go to any page and insert the macro.
      4. Edit the macro and switch its Status values just to see that it is working.
      5. Save the page.
      6. Upgrade Confluence to the 6.6.0 version.
      7. Try to edit the macro again

      Expected Results

      User will be able to edit the macro.

      Actual Results

      The editor screen hangs and the Console of Google Chrome will throw the following error:

      Uncaught TypeError: Cannot read property '[object String]' of null
          at String.<anonymous> (batch.js?analytics-enabled=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB:1173)
          at Function.each (batch.js?locale=en-GB:189)
          at init.each (batch.js?locale=en-GB:182)
          at Object.enum (batch.js?analytics-enabled=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB:1173)
          at v (batch.js?analytics-enabled=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB:1226)
          at Object.<anonymous> (batch.js?analytics-enabled=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB:1231)
          at Function.each (batch.js?locale=en-GB:189)
          at init.each (batch.js?locale=en-GB:182)
          at Object.loadMacroInBrowser (batch.js?analytics-enabled=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB:1231)
          at Object.successCallback [as success] (batch.js?analytics-enabled=true&build-number=7502&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-GB:1277)
      

      Notes

      • User won't be able to insert any User Macro until this problem is fixed.
      • Simple users macros from https://confluence.atlassian.com/doc/writing-user-macros-4485.html are not affected
      • Editing the macro will let it working again temporarily. After some time, it will break again.
      • Broken macros affected had the type=enum. Maybe that property is related to bug.

      Workaround

        1. pestatus - Edit User Macro.png
          96 kB
          Guilherme V.
        2. pestatus - macro code.txt
          2 kB
          Guilherme V.
        3. screen_hanging.png
          159 kB
          Guilherme V.
        4. image-2018-02-09-14-58-08-443.png
          99 kB
          DirkL
        5. UserMacroList(FromGearIconGeneralConfigUserMacros).PNG
          48 kB
          Stephen Kairys
        6. image-2018-02-20-10-04-09-501.png
          97 kB
          Stephen Kairys
        7. No Macro Metadata - Error.PNG
          17 kB
          Stephen Kairys

              jgiacoppo Jade Giacoppo (Inactive)
              gviana Guilherme V. (Inactive)
              Votes:
              32 Vote for this issue
              Watchers:
              37 Start watching this issue

                Created:
                Updated:
                Resolved: