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

Doc change notification not sent when XWiki.saveDocument() is called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1 M4
    • 1.1 M3
    • {Unused} Core
    • None

    Description

      There are 4 APIs for saveDocument(). Two of them take an oldDoc. These 2 APIs do send notification. The other 2 don't take an oldDoc and don't send a notification.

      I believe the reason for this is that the saveDocument that takes an oldDoc is flawed. I can't rationalize the fact that the API would need to be passed an old document (prior to modification). The modifications should rather be held INSIDE the XWikiDocument object itself. See XWIKI-1517.

      I'm attaching a test case that proves it doesn't work.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: