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

Class attribute not escaped in Live Tables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.4-milestone-1
    • 6.4.5
    • LiveTable
    • None
    • Unit
    • Easy
    • N/A
    • N/A

    Description

      Using the LiveTable Macro to display an object attribute named "where" in a column results in an error, if that column is to be displayed in the first position.

      Example:

      #set($columns = ["where", "doc.title", [...], "doc.creationDate", "_actions"])
      [...]
      #livetable("test" $columns $columnsProperties $options)
      

      Results in an "ERROR unexpected token: where" (and the table remains empty), whereas

      #set($columns = ["doc.title", "where", [...], "doc.creationDate", "_actions"])
      [...]
      #livetable("test" $columns $columnsProperties $options)
      

      seems to work without a problem.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            kresse Martin Kresse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1 day
                1d