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

Include macro does not resolve its reference properly cross wiki (when page is displayed with display macro)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.5.1
    • Component/s: Display
    • Labels:
    • Environment:
      XEM
    • Tests:
      Unit
    • Difficulty:
      Medium
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      To reproduce:

      • use the xar attached to XWIKI-8823
      • move the document called Sandbox.MakeTestDoc2Fail on a different wiki
      • the content of the document Sandbox.TestDoc1 will not be displayed

      This seems to be because of the

      {{include reference="" /}}

      macro that we use in the sheet to display the document content. If the include macro call is replaced with something like:

      {{include reference="$doc.prefixedFullName" /}}
      

      then it works fine, showing that it's an issue of reference resolving.

        Attachments

          Activity

            People

            Assignee:
            mflorea Marius Dumitru Florea
            Reporter:
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: