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

Context execute the content when the transformation context is set to current

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 14.4.6, 14.9, 13.10.10
    • 14.9-rc-1
    • Windows 11 Pro 64bit, Chrome 106, using an instance of XWiki 14.9 RC1 on MariaDB 10.6, Tomcat 9.0.68
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Put the following in Main.WebHome page (Reference Macro may need to be installed):
        = {{id name="test"/}} Test =
        
        {{context document="Main.WebHome" transformationContext="current"}}
        Section {{reference section="test"/}} is very important.
        {{/context}}
      2. Click 'Save & View'

      EXPECTED RESULTS

      The output is displayed properly, like: "Section 5 is very important."

      ACTUAL RESULTS

      There is an error:

      Reference to id [test] not found.

      On XWiki 14.7 the error is not present.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: