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

Wiki macros are evaluating programming rights on wrong (local) documents when executed in virtual wikis

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      Before executing macro transformations, DefaultWikiMacro class will set the current context document to be the macro definition document. This is because the macro needs programming rights to execute, even if the macro invocation document does not have programming rights.

      The problem is WikiMacroBuilder drops the "wiki" part from the macro definition document name when building a wiki macro. Because of this, programming rights are evaluated on local wiki documents (probably non-existing) rather than the macro defining document which is on main wiki.

      Attachments

        Issue Links

          Activity

            People

              asiri Asiri Rathnayake
              asiri Asiri Rathnayake
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: