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

TemplateManager#getXDOM does not really make sense

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.8-rc-1
    • Fix Version/s: 9.8, 8.4.6
    • Component/s: Old Core, Template API
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      It's dangerous (proof is XWIKI-14729) and inconsistent (velocity template are executed but wiki template are just parsed).

      It should be deprecated and if the concept of parsing a template is really needed introduce a parse() API instead which does not execute velocity template but instead produce a XDOM which emulate its behavior.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: