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

Script macros are leaking when getRenderedContent(String, String, String) is called

    XMLWordPrintable

Details

    • Unknown

    Description

      Example:

      {{groovy}}
      println "${doc.fullName}"
      def pageDoc = xwiki.getDocument("page")
      pageDoc.getRenderedContent(pageDoc.getTranslatedContent(), pageDoc.getSyntaxId(), "xhtml/1.0")
      println "${doc.fullName}"
      {{/groovy}}
      

      The second println will print the name of the "page" document instead of the current document

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: