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

Live Data script service renders escaped html when called from a velocity macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 16.0.0-rc-1
    • Live Data
    • None
    • Unknown

    Description

      Reproduction steps

      Create a page with the following content:

      {{velocity}}
      $services.liveData.render({
        'id': "recentPages",
        'properties': "doc.title,doc.location,doc.author,doc.date",
        'source': "liveTable",
        'sourceParameters': "translationPrefix=platform.index.",
        'filters': "doc.location=help",
        'sort': "doc.date:desc",
        'limit': 5
      })
      {{/velocity}}

      Expected

      The live data is displayed.

      Actual

      The escaped html of the livedata is presented to the user.

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: