Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9803

ConfluenceXHTMLParser does not repair CDATA containing square brackets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 5.4-milestone-1
    • 5.3-rc-1
    • Filter
    • Unit
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      The Confluence XML Export creates nested CDATA sections and handles them by "damaging" the inner CDATA sections by inserting a space between the closing ]] and > .

      When importing, the ConfluenceXHTMLParser tries to make up for that, but the attempt to repair fails if the text inside the CDATA section contains one or several closing square brackets.

      (As far as I can see, the export simply adds a space behind every two consecutive closing square brackets. This might even make the job of repairing them simpler.)

      Attachments

        Issue Links

          Activity

            People

              camil7 Clemens Robbenhaar
              camil7 Clemens Robbenhaar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: