Skip to content

Selected items on other pages are hit by batch actions, including permanent deletes #3954

Open

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

A selection survives page changes and sorting, and batch actions also hit the selected items you can't see anymore. I think this is critical: tick an item on page 3, forget about it, go back to page 1, tick an item there and delete it, and the item on page 3 gets deleted as well. In files it at least lands in the trash, but in the admin settings (users, groups, spaces) and in the trash bin the delete is permanent.

Confirmed on main (f530b93) with 20 items per page:

View Hidden selection survives Example
Admin users page, sort "Delete 21 users?" with 20 of them on another page
Admin groups page, sort "Delete 21 groups?"
Admin spaces page, sort "Delete 2 Spaces?" for two disabled spaces on another page while only an enabled one is ticked
Spaces overview page, sort, "show disabled spaces" off Ctrl+A selects all 40 spaces on every page; "Delete 3 Spaces?" for hidden disabled spaces
Trash page "Permanently delete 21 selected resources?"
Folders and spaces page, sort, drag and drop dragging one file moved 4 (3 from another page)
Favorites, search results page, sort bar keeps "21 selected"
Shared with others, shared via link page, sort bar keeps "21 selected"

In the files views the header checkbox even shows "all selected" on page 2 with no ticked row, because it only compares counts (useResourceViewSelection.ts:36-42). The selection is stored globally and nothing removes items when they leave the view (useResourcesViewDefaults.ts, admin UsersList.vue/GroupsList.vue/SpacesList.vue), and the batch actions, the "N selected" bar and drag and drop use the whole stored selection.

Reproduction Steps

  1. Admin settings > Users, 20 per page, at least 21 users.
  2. Click the "select all" checkbox on page 1.
  3. Go to page 2 and tick one user.
  4. Click "Delete" in the batch bar.

Expected Outcome

Only what's visible is selected: items that leave the view (page, sort, filter, tab) leave the selection, and "select all" is based on the visible rows.

Actual Outcome

The dialog asks to delete 21 users and deletes the 20 users from page 1 too.

Activity

  1. self-assigned this
    on Oct 20, 2026
  2. moved this from Qualification to In Progress in OpenCloud Team Boardon Oct 20, 2026
  3. moved this from In Progress to Needs Review in OpenCloud Team Boardon Oct 20, 2026
  4. moved this from Needs Review to Blocked in OpenCloud Team Boardon Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions