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

Actions that modifies a document should return the new document version

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.1
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated: