Closed (works as designed)
Project:
Drupal core
Version:
11.x-dev
Component:
user system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jan 2020 at 05:53 UTC
Updated:
29 Aug 2024 at 02:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hardik_patel_12 commentedKindly review a patch
Comment #3
hardik_patel_12 commentedKindly review a new patch.
Comment #4
hardik_patel_12 commentedComment #5
siddhant.bhosale commentedComment #6
siddhant.bhosale commentedI have tested the patch and works for me. looks good to be merged.
Adding the screen-recording while testing the patch.
Comment #7
siddhant.bhosale commentedComment #8
longwaveThis seems to silently ignore the error. Shouldn't we warn the user that whatever they are trying to do couldn't be done because the entity no longer exists?
Also, this doesn't seem to fit "major" priority under our criteria.
Comment #9
hardik_patel_12 commentedAbsolutely @longwave you are right that user can't do anything with non existing entity, and it is normal priority as we have to handle fatal error if user user try do unusual scenario such as mentioned above.
Comment #10
catchThis could use test coverage.
Given we're just handling a race condition here (entities deleted in between selecting and submitting the form) I think silently not doing anything is probably OK.
Comment #11
xjmSince we should fix this bug in D8 too, I'm filing it against 8.8.x (which is the current bugfix support branch). Patches can be tested against other branches as needed when they're uploaded without changing the issue's version selector.
The issue will be automatically updated to 8.9.x after the last 8.8.x bugfix release. Thanks!
Also, we should write an actual issue summary.
Comment #17
pameeela commentedI've tried to reproduce this, but I'm not getting the error that was originally reported. In the screencast provided, there is no error visible but I'm not seeing an error in the logs either. It does just fail silently but I don't see why this is a use case to support? Can we close this if there is no error?
Comment #18
pameeela commentedUpdating title to reflect that there is no error from what I can see. Not sure if I have missed something.
Comment #19
catchThe silent failure accounts for a potential real race condition.
e.g. if two users are trying to delete a user at the same time, and one deletes the user individually, and the other users the bulk actions from admin permissions, and the bulk action runs last, then there is just nothing to do because the user is already deleted.
However it's also not particularly helpful to show a message because e.g. if you want to delete 10 users, and one of them gets deleted between selecting them and submitting the form, and then after the form was submitted, all 10 are deleted (even if one was deleted by someone else), what should be reported? That a user couldn't be deleted because they were already deleted?
Probably we could log something like that, but it doesn't seem useful to show to users- they could think something has gone wrong when it hasn't.
Comment #20
pameeela commentedThanks for confirming, I'll close this then since there was no further comment after it was marked as postponed.