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

XWikiDocument#getDocumentArchive(context) always return an empty archive

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Reproduction steps:

      • Create a page with a user having PR with the following snippet:
        {{velocity}}
        #set ($mainDoc = $xwiki.getDocument('Main.WebHome').getDocument())
        Main doc archive: $mainDoc.getDocumentArchive($xcontext.getContext()).nodes
        
        Clone doc archive: $mainDoc.clone().getDocumentArchive($xcontext.getContext()).nodes
        {{/velocity}}
        

      Expected result:

      • Main doc archive and Clone doc archive have same content

      Obtained result:

      • Main doc archive have some nodes but Clone doc archive just displays an empty list []

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: