This issue has been created
There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ab5f8aab-c72d-411a-9c26-e494e23cba60 XWIKI-22284 Open

Re-joining a Realtime editing session discards unsaved changes

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b3de3a33-64bb-4d5e-9dc7-ca258656f6b0 Dorian Ouakli created this issue on 20/Jun/24 12:32
 
Summary: Re-joining a Realtime editing session discards unsaved changes
Issue Type: cid:jira-generated-image-avatar-ab5f8aab-c72d-411a-9c26-e494e23cba60 Bug
Affects Versions: 15.10.10, 16.4.0, 16.5.0-rc-1
Assignee: Unassigned
Components: Realtime
Created: 20/Jun/24 12:32
Priority: cid:jira-generated-image-static-major-328e4292-94f0-4823-9d66-4211acd5189b Major
Reporter: Dorian Ouakli
Description:

Steps to reproduce, having realtime editing enabled:

  • In a first browser window, log-in as alice and start editing a page.
  • In an incognito window, log-in as bob and edit the same page.
  • Back to the first browser window, make alice leave the realtime session by unchecking the checkbox.
  • Make some changes in the first browser window.
  • In the first browser window, join the realtime session again by checking the checkbox.

 

Expected result: Alice is prompted wether or not she wants her changes to be integrated in the realtime session or discarded.

Actual result: The changes made by alice are discarded and the content is replaced by the realtime session's current content.

 
 

2 comments

 
cid:jira-generated-image-avatar-b3de3a33-64bb-4d5e-9dc7-ca258656f6b0 Dorian Ouakli on 20/Jun/24 12:35
 

An approach would be to trigger a save before re-joining the realtime session. The changes made outside of the realtime session would be picked-up and integrated by the realtime session.

 
cid:jira-generated-image-avatar-b3de3a33-64bb-4d5e-9dc7-ca258656f6b0 Dorian Ouakli on 20/Jun/24 12:36
 

The need to leave the realtime session to edit the source from the wysiwyg editor makes it more important to be able to integrate changes back into the realtime session.