This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-de3e28c9-25af-4c4e-86cf-b002370cda00 XWIKI-22218 Open

Drag & Drop doesn't successfully create links if the actions are performed in the same time by users

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-70695414-934b-4e58-a0a2-0d72dc0466bf Ilie Andriuta created this issue on 07/Jun/24 16:48
 
Summary: Drag & Drop doesn't successfully create links if the actions are performed in the same time by users
Issue Type: cid:jira-generated-image-avatar-de3e28c9-25af-4c4e-86cf-b002370cda00 Bug
Affects Versions: 15.10.10, 16.4.0
Assignee: Unassigned
Attachments: Realtime_Upload_aborted_by_the_user.png
Components: Realtime
Created: 07/Jun/24 16:48
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-9c9328b8-e568-460e-bebe-9ddf0f14e16e Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

I managed to also reproduce the issue locally with 2 users in different tabs (one using Incognito mode) and some larger files.

  1. Enable Realtime WYSIWYG from Administration
  2. Login with an user (e.g. U1)
  3. Edit a page in-place
  4. Using another (incognito) window/tab, login with another user (e.g. U2)
  5. Edit the same page by forcing the lock
  6. Set the 2 windows to fit in the screen, but leave a spot for a 3rd window from which the Drag & Drop will be made
  7. Select 2 larger files and drop the one after another for each user (I first dropped a file of 100 MB for U1 and immediately after that a 64 MB file for U2)
  8. Observe the messages displayed
  9. Save the pages and observe the links created

Expected results

There are displayed only messages for successful uploads for both users.

After save, both links are displayed on the page.

Actual results

After dropping the 100 MB file for U1, when dropped the 64 MB file for U2, a blue message was displayed for U1:

Upload aborted by the user.

After the save, only the link for the 64 MB file dropped by U2 was displayed (however, the files are displayed in Attachments tab).