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

Class attribute not escaped in Live Tables

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.5
    • Fix Version/s: 7.4-milestone-1
    • Component/s: LiveTable
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response:

                Time Tracking

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