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

Include Macro uses same revision number for included page as the current page

    XMLWordPrintable

Details

    • include, macro, revision, history
    • High

    Description

      Current behavior with wiki syntax 2.0: When you specify that you want to view revision 5.2 of your document, the include macro also attempts to render version 5,2 of the included document. If the version does not exist, the macro fails.

      Expected behavior: The included document should be the most current version, as there is no way to currently tell what version was included at this particular revision number. OR implement some way to track the revision number of the included document in the include macro.

      Steps to reproduce:
      Created new page, add an

      {{include document="TestDoc"/}}

      and save the page in syntax 2.0

      Viewing the page at this point is fine. The document is included.

      If you check the revisions at this point, it works fine.

      But that's because both your current document, and your included document have a revision 1.1

      The easiest way to reproduce at this point, is usually to reopen your document and save it as a minor edit

      now view revision 1.2, as long as the included document doesn't have a revision 1.2, it is going to throw a velocity error.

      Attachments

        Issue Links

          Activity

            People

              anamaria Anamaria Stoica
              david.mountney David Mountney
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: