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

Sending notifications fails when restoring documents from the recycle bin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.5 M1
    • 1.4
    • {Unused} Core
    • None
    • Unit

    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

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

            Dates

              Created:
              Updated:
              Resolved: