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

XWiki velocity variables are undefined when the edited content is rendered

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3, 2.1 M1
    • Component/s: WYSIWYG Editor
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Trivial
    • Similar issues:

      Description

      Follow this steps to reproduce:

      • edit a new page in WYSIWYG mode
      • switch to source tab and set the content to:
        {{velocity}}
        #if($hasEdit)
        You can edit
        #else
        You can't edit
        #end
        {{/velocity}}
        
      • switch to WYSIWYG tab

      The displayed text is "You can't edit" instead of "You can edit".

        Attachments

          Activity

            People

            Assignee:
            mflorea Marius Dumitru Florea
            Reporter:
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: