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

Actions that modifies a document should return the new document version

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 11.1
    • Old Core
    • None
    • Unknown

    Description

      When an action modifies a document, it changes its revision. We should return this revision directly instead of letting the client ask the revision to the server: by doing it, we avoid potential inconsistencies in the revision obtained in the client.

      Here's the list of actions which should return a revision in case of success in AJAX request:

      • SaveAction / SaveAndContinueAction
      • UploadAction / DeleteAttachmentAction
      • CommentAddAction / CommentSaveAction
      • ObjectAddAction / ObjectRemoveAction
      • RollbackAction
      • PropAddAction / PropDeleteAction / PropUpdateAction

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: