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

When documents containing attachments were imported, XWikiAttachmentArchive.getVersions() throws an NPE if there is only one version.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 5.2-rc-1
    • Component/s: Storage
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      to repeat:

      {{groovy}}
      xwiki.getDocument('Sandbox.WebHome').getDocument().getAttachmentList().get(0).loadArchive(xcontext.getContext()).getVersions();
      {{/groovy}}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                calebjamesdelisle CalebJamesDeLisle
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: