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

Possible NPE when performing document merges with inserted attachments

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4-milestone-1
    • Fix Version/s: 11.10.5, 12.4-rc-1
    • Component/s: Storage
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: