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

Velocity macros leak between consecutive renderings of the same page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.7 M1
    • Fix Version/s: None
    • Component/s: Velocity
    • Labels:
      None
    • Development Priority:
      Low
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved: