This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-11ee40a7-707d-4de6-9545-7f83240c4cc8 XWIKI-22390 Open

Content may be duplicated when the page is automatically saved in realtime

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-fed97ca6-a797-453d-8d85-dd8984c29add Ilie Andriuta created this issue on 05/Aug/24 11:22
 
Summary: Content may be duplicated when the page is automatically saved in realtime
Issue Type: cid:jira-generated-image-avatar-11ee40a7-707d-4de6-9545-7f83240c4cc8 Bug
Affects Versions: 16.6.0
Assignee: Unassigned
Attachments: Duplicated_saved_content.png, cc.WebHome.xar
Components: Realtime
Created: 05/Aug/24 11:22
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-eaeba99a-4028-481e-b5ad-7eef12504c33 Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Enable Realtime WYSIWYG from Administration
  2. Login with an user (e.g. U1)
  3. Edit a page (I reproduced by editing in-place, if relevant)
  4. Using another (incognito) window/tab, login with another user (e.g. U2)
  5. Edit the same page
  6. Insert some text, then insert some images with each user
  7. Add some other pieces of text with each user
  8. Wait until the page gets automatically saved

Expected results

The content is saved properly one time, it's not duplicated.

Actual results

The content is saved, but it's almost fully duplicated, it seems only the first text line added on the page was not duplicated.

I've attached the screenshot and the XAR of the page where the issue was reproduced, but I couldn't successfully reproduce this issue consistently.

If I will find a way to reproduce this easier, I will update the steps.