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

Whitespace is not removed from Status macro like it is removed from the page's content

    XMLWordPrintable

Details

    Description

      Issue Summary

      • In the Confluence editor, if we were to paste any invalid whitespaces like "0x8", the character is automatically removed to allow the page to be published.
      • But if this character is in the "Status macro", it is not removed, and the page cannot be published.

      Steps to Reproduce

      1. Go to the site below, and paste "0001000", binary for 0x8, and convert it to ASCII/UTF-8.
      2. Copy the result, and try pasting it into a page in Confluence and publish the page.
        • The content is removed automatically and the page is published.
      3. Try adding the same content into a "Status macro", and try publishing the page.
      4. You'll hit into the error below.
        • Your work is safe, but there’s an issue
          Error converting ADF to storage format
      5. This issue might be affecting other macros as well.

      Expected Results

      • The invalid content is removed automatically and the page should be publishable.

      Actual Results

      • The invalid content is not removed, and the page cannot be published.
      • The below exception is seen in our logs.
        • Caused by: java.io.IOException: Invalid white space character (0x8) in text to output
          com.ctc.wstx.sw.XmlWriter.throwInvalidChar(XmlWriter.java:545)
          com.ctc.wstx.sw.BufferingXmlWriter.writeCharacters(BufferingXmlWriter.java:453)
          com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:518)
          

      Workaround

      • Manually search for and remove the problematic content.

      Attachments

        Issue Links

          Activity

            People

              472cc2e7ccc5 Andrey Markelov
              smaran Sattesh M
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: