Bug #106748
openEditors cannot delete folders – getNearestRecyclerFolder throws InsufficientFolderAccessPermissionsException
0%
Description
Editors (non-admin users) are unable to delete folders via the Filelist module if the parent folder is not accessible due to permission restrictions.
The method\TYPO3\CMS\Core\Resource\ResourceStorage::getNearestRecyclerFolder()
throws an InsufficientFolderAccessPermissionsException
when:
- No folder with the role
FolderInterface::ROLE_RECYCLER
exists in the accessible hierarchy or - The parent folder (e.g.,
fileadmin/
) is not accessible due to user permissions.
fileadmin [no access] └── folder1 [file mount] ├── _recycler_ └── folder-to-delete
In this scenario, folder-to-delete
cannot be deleted because the method fails to resolve a valid recycler folder due to restricted access to fileadmin
.
- Deletion should work as long as a
_recycler_
folder exists within the accessible tree, and the user has permissions to use it. - Alternatively: If no
_recycler_
folder exists or is accessible, the method should returnnull
instead of throwing an exception.
Actual Behavior:
The method getNearestRecyclerFolder()
throws an InsufficientFolderAccessPermissionsException
, preventing the folder from being deleted.
Possible Fix:
Catch and suppress InsufficientFolderAccessPermissionsException
during traversal.
Updated by Jakub Zgirski 28 days ago
I confirm that behaviour. As addition, on T3 13.4.8 i didn't had that issue.
Updated by Garvin Hicking 28 days ago
- Related to Bug #96863: Directory content does appear outside the folder when using the recycler bin added
Updated by Garvin Hicking 28 days ago
I believe this was caused by:
Updated by Garvin Hicking 28 days ago
- Status changed from New to Accepted
- Is Regression set to Yes
Updated by Friedemann Altrock 9 days ago
Could reproduce.
Interestingly, this does work for deleting files. Why? Because the `deleteFile` method disables the permission checks, so the move can succeed.
Updated by Friedemann Altrock 9 days ago
- Related to Bug #106838: Editors can not delete folders in filelist added
Updated by Gerrit Code Review 9 days ago
- Status changed from Accepted to Under Review
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89681