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

Infinite loop when trying to execute transformations for xwiki/1.0 syntax containing html

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      The problem is that with 1.0 syntax

      parser.parse(new StringReader(documentContent));
      

      is converted to 2.0 syntax and then parsed. So if there is html in it it generate html macro with the html content it it.

      Problem is that when html macro is executed it tries to parse the content with the source proided to the TransformationManager which here is xwiki/1.0 and then re-do the same thing (convertt from 1.0 to 2.0 and generate html macro since the content has html, parse it, execute html macro, etc.) which produce an infinite loop.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: