Invalid XML in Code Block macro with HTML/XML syntax highlighting turned on can cause pages to become inaccessible

XMLWordPrintable

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      A customer raised an issue where they would try to view a page and the page would never load. I was able to narrow it down to some invalid XML in a code macro, specifically a <![CDATA]> tag that was incorrectly closed (the end tag had an opening square bracket at the very end instead of a closing one). Going directly to the edit URL and turning off syntax highlighting fixes it (as does correcting the invalid XML, obviously).

      Workaround

      In the case of nested CDATA sections, change all occurrences of ]]> with the following:

      ]]]]><![CDATA[>

       

            Assignee:
            Steve Haffenden (Inactive)
            Reporter:
            Nick Mason
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: