Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.8 RC2
-
None
-
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
- is related to
-
XWIKI-5148 viewrev should be associated to the document reference instead of the context
- Open