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

ConfluenceXHTMLParser does not repair CDATA containing square brackets

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3-rc-1
    • Fix Version/s: 5.4-milestone-1
    • Component/s: Filter
    • Labels:
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: