Unable to view pages with specific content in the new editor: nested, indented list > rich text body macro > list

XMLWordPrintable

    • 11
    • Minor
    • 4
    • Warranty

      Issue Summary

      Pages created with the legacy editor allowed users to create content with arbitrary indentation of nested lists, as well as lists with rich text bodied macros nested within them. However, content with a specific combination of these two is not compatible with the new editor. See the reproduction steps below to generate the problematic content.

      Note: this issue may also happen with tables.

      Steps to Reproduce

      1. Create a legacy page.
      2. Add a bullet point list and indent it once.
      3. In the same list item, add a panel macro.
      4. In the panel macro, add another bullet point list.
      5. Publish the page.
      6. Observe that the page cannot be converted to the new editor.

      Expected Results

      The page can be converted into the new editor and into the ADF format.

      Actual Results

      The below exception is thrown when trying to view the content in the new editor or when converting to ADF format:

      [com.ctc.wstx.exc.WstxLazyException] Unexpected close tag </xml>; expected </ac:rich-text-body>. at [row,col {unknown-source}] 

      Workaround

      Change the storage format of the content (e.g. via the REST API) so that nested lists are not arbitrarily indented. One can do this by grabbing the storage format and find/deleting all instances of the string  " style="list-style-type: none;"", excluding the outermost quotations and including the first spacekey character. After saving the modified storage format, you should be able to edit the page to your liking through the Confluence UI.

            Assignee:
            Josh Ramos
            Reporter:
            Selena Sui
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: