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

Plain Text type Macros cannot contain CDATA end sequence

    XMLWordPrintable

Details

    Description

      Issue Summary

      Plain Text type Macros cannot contain CDATA end sequence

      Steps to Reproduce

      1. Create Code macro
      2. Enter:
        ]]>
      3. Save page

      Expected Results

      Page saves

      Actual Results

      com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (Unexpected exception writing to stringwriter. java.io.IOException: javax.xml.stream.XMLStreamException: Illegal input: CDATA block has embedded ]]> in it (index 87))
              at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:58)

      Workaround

      None known

      Attachments

        Issue Links

          Activity

            People

              854eef6f5746 Kusal Kithul-Godage
              854eef6f5746 Kusal Kithul-Godage
              Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: