This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-a6adecc7-0506-4d11-a6dc-020b3f334551 XWIKI-22401 Open

Content added in Source editing mode can get lost when editing in realtime if no other modification is made after the realtime session is joined

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b28e9b09-af27-4da4-aac0-2a82d7cdf031 Ilie Andriuta created this issue on 07/Aug/24 12:45
 
Summary: Content added in Source editing mode can get lost when editing in realtime if no other modification is made after the realtime session is joined
Issue Type: cid:jira-generated-image-avatar-a6adecc7-0506-4d11-a6dc-020b3f334551 Bug
Affects Versions: 16.6.0
Assignee: Unassigned
Attachments: Admin_Source.png, Automatically_saved_content.png, U1_added_text.png
Components: Realtime
Created: 07/Aug/24 12:45
Environment: Windows 11 Pro, Chrome 127, using a local instance of XWiki 16.6.0 on MySQL 8.4, Tomcat 9.0.91
Priority: cid:jira-generated-image-static-major-9c42c2f9-dff2-45d5-8891-39682d51c648 Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Login as Admin and enable Realtime editing from Administration
  2. Edit a page in-place
  3. Click on 'Source' button
  4. Insert some text (e.g. 'Admin's Source')
  5. Click again on 'Source' button to re-join the realtime session but don't make any other action (like inserting a space or another character)
  6. Open the same page in an Incognito window or another browser
  7. Login with an user (e.g. U1)
  8. Edit the page and insert some text with the user U1
  9. Wait for the automatic save to occur

Expected results

On automatic save, the user U1 gets the Conflict Warning modal, since before his editing, there was Admin's content which was not yet saved.

Actual results

Only the content added later by the user is displayed, the content added initially by Admin in Source mode is lost.

I think the issue is that when the user U1 starts editing the page, the content added by Admin in Source mode is not displayed on the page, which does not happen if a modification is added in WYSIWWYG after the realtime mode is joined.