Synchronous editing of a post leads to PostNotFound exceptions
Issue #2649
open
When two people edit a post synchronously and one saves it before the other, the other user gets an exception that the edited post could not be found in the database. While this is true (since the post has been edited), this is confusing behaviour.
This could be solved as follows: When saving a post, it could be checked by JavaScript if the edited post still exists. If the post does not exist, either block the user from saving the post or show him a corresponding error message.
If possible, try to find out the new post and show the edit differences, so the edits from both users can be merged.
Comments (6)
-
-
- changed status to open
-
- marked as blocker
-
- changed milestone to 3.8.0
-
- removed responsible
-
- changed version to 3.7.0
- removed milestone
- Log in to comment
I would suggest to handle this in the controller and not by AJAX calls