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

Possible NPE when performing document merges with inserted attachments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 11.10.5, 12.4-rc-1
    • 5.4-milestone-1
    • Storage
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When performing a merge of documents, the special of merging two documents with the same inserted attachments might lead to an NPE.
      Apparently we decided to warn users in such cases, but we don't give the right reference in case of inserted document.
      Note that this is actually an old issue that I tracked back there: https://github.com/xwiki/xwiki-platform/commit/12e01aa1e383beb131df42265eef2af15ac0b08e#diff-9c8228109f081a40ad73bfd95c485902R8463 but it's now more used than before since this code is called as part of the Merge on save mechanism implemented in XWIKI-16464.

      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: