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

Automatically delete unprotected Velocity namespace

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.3-rc-1
    • Fix Version/s: 6.4-milestone-1
    • Component/s: Velocity
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      This means that unless the namespace is "protected" with a call to VelocityEngine#startedUsingMacroNamespace it will be removed at the end of evaluate when all you want is just to execute some isolated velocity code.

      This allows to get rid of a lot of annoying calls to startedUsingMacroNamespace/stoppedUsingMacroNamespace and any code that really require to share macros between several velocity contents is already calling startedUsingMacroNamespace/stoppedUsingMacroNamespace (mostly to make sure they will share the same namespace and that l will be removed at the end).

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: