Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-59369

Code Block Macro in Global Template prevents template from being rendered or used.

    XMLWordPrintable

Details

    Description

      Summary

      Templates that contain Code block macros will display a blank page when trying to create new pages or when trying to view the template.

      Environment

      Cloud

      Steps to Reproduce

      1. Create a global template and add a code block macro to the template.
      2. save the template
      3. try to view the template

      Expected Results

      The template preview is displayed.

      Actual Results

      The page is completely blank (no sidebar or top bar either)

      There are Javascript errors in the console like this:

      Uncaught RangeError: Maximum call stack size exceeded
          at RegExp.<anonymous> (_fix-re-wks.js:22)
          at String.replace (<anonymous>)
          at String.replace (com.atlassian.confluence.ext.newcode-macro-plugin:syntaxhighlighter.js?externals=__local-default__&locale=en-GB:5)
          at RegExp.<anonymous> (_fix-re-wks.js:22)
          at String.replace (<anonymous>)
          at String.replace (com.atlassian.confluence.ext.newcode-macro-plugin:syntaxhighlighter.js?externals=__local-default__&locale=en-GB:5)
          at RegExp.<anonymous> (_fix-re-wks.js:22)
          at String.replace (<anonymous>)
          at String.replace (com.atlassian.confluence.ext.newcode-macro-plugin:syntaxhighlighter.js?externals=__local-default__&locale=en-GB:5)
          at RegExp.<anonymous> (_fix-re-wks.js:22)
      

      Notes

      N/a

      Workaround

      There is no known workaround at this time.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jlong@atlassian.com Jared Long
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: