Opened 14 years ago
Closed 11 years ago
#16164 closed defect (bug) (duplicate)
"You are not allowed to delete this post." - While Deleting a Media Library Item
Reported by: | hakre | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Media | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
While deleteing 999 media library items, the request timed out. Resending the same request triggered an error message:
You are not allowed to delete this post.
For me as a programmer, I know that those library items are technically a post, but for communicating with the user, the error message is misleading.
Attachments (1)
Change History (10)
#2
@
14 years ago
Somewhat related: If you delete a bunch of media items of which some have been already deleted by some other thread, it will stop at the first one that is not able to delete (e.g. because it already has been deleted).
As the request was to delete a post, it could be considered successfull if that post had been already deleted. So it's possible worth to just skip (or count the number of successful deletions) and try further instead of stopping.
This might especially make sense if multiple users are making use of the backend and do some clean-up work. To more gracefully deal with (already) non-existant posts while deleting.
#4
@
14 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
As the request was to delete a post, it could be considered successfull if that post had been already deleted. So it's possible worth to just skip (or count the number of successful deletions) and try further instead of stopping.
Seems fine.
#6
@
14 years ago
Actually, see the patch on #16165 which includes this as well as other improvements to bulk handling.
Related: #16162