Code Block Macro XML content is causing the page to freeze

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Summary

      Code Block macro content that includes a REST API endpoint will cause the page to freeze when loading.

      Environment

      Confluence Cloud

      Steps to Reproduce

      1. Create a page
      2. Insert a Code Block Macro
      3. Input the below XML code to the Code Block macro
        UTF-8</con:encoding><con:endpoint>https://test.atlassian.net/admin/rest/um/1/usermanagement</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
           <soapenv:Header>
              <hd:Header xmlns:hd="http://www.test.co/header/types">
                 <hd:VendorId>999111</hd:VendorId>
                 <hd:TransactionId>${=java.util.UUID.randomUUID()}</hd:TransactionId>
                 <hd:Timestamp>${=new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX").format(new Date())}</hd:Timestamp>
              </hd:Header>
           </soapenv:Header>
        
      4. Make sure to change the Highlight Syntax to HTML and XML
      5. Save the Code Block Macro
      6. Publish the page
      7. Access the page

      Expected Results

      • The content of the code block macro should not cause the page/browser to freeze.

      Actual Results

      • The content of the code block macro is causing the page/browser to freeze.

      Workaround

      • Change the Highlight Syntax to None

            Assignee:
            Unassigned
            Reporter:
            Janice Alor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: