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

Sending notifications fails when restoring documents from the recycle bin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5 M1
    • Component/s: {Unused} Core
    • Labels:
      None
    • Tests:
      Unit
    • Similar issues:

      Description

      Because doc.getOriginalDocument() is null.

      XWiki#saveDocument should always set an originalDocument, even if it was null before. Otherwise, the behavior is not consistent, as saving a new document does have an originalDocument (for which isNew() will return true), and saving a manually constructed XWikiDocument object (created using new) will have a null originalDocument.

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: