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

LiveTable generator does not escape XWiki syntax in JSON strings.

    XMLWordPrintable

    Details

    • keywords:
      json escaping
    • Difficulty:
      Easy
    • Similar issues:

      Description

      The JSON code is generated from a page in syntax XWiki/2.0 with target syntax plain. Typically a field is generated as such:

                 "$escapetool.javascript(${colname})" : "$escapetool.javascript(${text})"
      

      Any wikitext in the result of the expression $escapetool.javascript(${text}) will be rendered to plain syntax. In particular '(((' and ')))' are problematic as these will be rendered as verbatim new line characters, which results in unparsable json code.

        Attachments

          Activity

            People

            Assignee:
            aj Andreas Jonsson
            Reporter:
            aj Andreas Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: