This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-5326841b-e41d-42f7-89a0-63e34d1c800d XWIKI-22228 Open

The automatic realtime save is not performed all times with the last user that made a modification

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6573d206-1e4b-4e53-ab27-900b42b7e3f5 Ilie Andriuta created this issue on 10/Jun/24 14:53
 
Summary: The automatic realtime save is not performed all times with the last user that made a modification
Issue Type: cid:jira-generated-image-avatar-5326841b-e41d-42f7-89a0-63e34d1c800d Bug
Affects Versions: 15.10.10, 16.4.0
Assignee: Unassigned
Attachments: Diff_Text_added_by_U2.png, U2_Last_Edit_Saved_by_User_One.png
Components: Realtime
Created: 10/Jun/24 14:53
Environment: Windows 11 Pro, Edge 125, using an instance of XWiki 15.10.10 on MySQL 8, Tomcat and XWiki 16.4.0 on PostgreSQL 16, Tomcat 9.0.89
Priority: cid:jira-generated-image-static-major-37b6514f-74a7-4417-b9d8-a930bd0fb931 Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

Initially this issue was reproduced while testing in real time with Gabi, but I also managed to reproduce it locally with 2 users in different tabs (one using Incognito mode), though, not that easy.

  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 by forcing the lock
  6. Create a line of text to be only edited by U1 and one line just for U2
  7. With U1, add some text in its line
  8. After that, with U2, add some text it its line as well in order to be the last user who makes a modification
  9. Wait for the automatic save to occur

Expected results

The automatic save is performed by U2, the last user who made a modification.

Actual results

The automatic save is performed by U1, the user who started editing the page.

The issue is not quite easy to reproduce, as it required a few tries (edits) to be able to reproduce it.

Please see attached the screenshot, including the diff.