Content overview page content selection for bulk operations race between users

Created on 6 October 2023, 11 months ago
Updated 12 October 2023, 11 months ago

Problem/Motivation

When two users select some nodes for bulk operation on content overview page `/admin/content` there is a bug that if one user deletes content, selection for other user moves to the next available nodes in the list if page refreshed. If I had 2 first nodes selected and those get to be deleted by another user, on page refresh my selection is set to the first 2 nodes in the list, but not the ones I selected intially.

Steps to reproduce

  1. Login to the same site as 2 different users at the same time (e.g. with two different browsers).
  2. As user1 go to `/admin/content` and select first node in the list.
  3. Then as user2 select the same node and using bulk operation delete this node.
  4. As user1 refresh the page and selected node would be the first node in the list, but not the initial one as that one was deleted by user2.

This can lead to deletion of files by mistake if page gets refreshed.

Proposed resolution

On `/admin/content` page refresh, it should check if nodes are removed that were previously selected and if they don't exist, it should clear selection of all that were removed.

This happens to me on Drupal core 10.1.4 using Claro 10.1.4 admin theme.

🐛 Bug report
Status

Postponed: needs info

Version

10.1

Component
Content moderation 

Last updated 1 day ago

Created by

🇷🇸Serbia miksha

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @miksha
  • Status changed to Needs review 11 months ago
  • 🇮🇳India viren18febS

    Hi @miksha

    I am not able to reproduce the issue in Drupal core 10.1.4 using Claro 10.1.4 admin theme.

  • Status changed to Postponed: needs info 11 months ago
  • 🇺🇸United States smustgrave

    @miksha can you confirm the steps please

  • 🇷🇸Serbia miksha

    I just realized this happens only on Firefox (I use 106.0.1 (64-bit) on Ubuntu Linux). So on page reload (f5) if there are selected items they stay selected. Only of ctrl+f5 they get cleared. I tested in Firefox private window too.

Production build 0.71.5 2024