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

Velocity macros leak between consecutive renderings of the same page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.7 M1
    • Velocity
    • None
    • Low

    Description

      Consider this example:

      First, edit a page A and enter the following:

      #macro(A $x)
        #set($x = "'a'")
      #end
      
      #A($x)
      $x
      

      As expected, saving and viewing the page displays 'a'.

      Then, edit the page and delete the definition of the macro, leaving just:

      #A($x)
      $x
      

      Saving and viewing the page, instead of showing the code unparsed, displays again 'a', as if the macro definition was still available.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: