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

Wiki Macros should be evaluated with the macro invocation document as the context document rather than the macro definition document

    XMLWordPrintable

Details

    • Unknown

    Description

      Wiki macros need programming rights to execute (otherwise scripting code inside wiki macro body will not be executed).

      Since most of the time macro users do not have programming rights, we had to workaround for granting programming rights for wiki macros. And the solutions was to change the context document to macro definition document for the duration of the wiki macro execution.

      But this workaround causes problems when the scripts inside the wiki macro needs to access the current document. This needs to be fixed.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            asiri Asiri Rathnayake
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: