Project

General

Profile

Actions

Bug #106748

open

Editors cannot delete folders – getNearestRecyclerFolder throws InsufficientFolderAccessPermissionsException

Added by Michael Neumann 28 days ago. Updated 9 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2025-05-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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.

Expected Behavior:
  • 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 return null 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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #96863: Directory content does appear outside the folder when using the recycler binResolved2022-02-13

Actions
Related to TYPO3 Core - Bug #106838: Editors can not delete folders in filelistClosed2025-06-05

Actions
Actions #1

Updated by Jakub Zgirski 28 days ago

I confirm that behaviour. As addition, on T3 13.4.8 i didn't had that issue.

Actions #2

Updated by Garvin Hicking 28 days ago

  • Related to Bug #96863: Directory content does appear outside the folder when using the recycler bin added
Actions #3

Updated by Garvin Hicking 28 days ago

Actions #4

Updated by Garvin Hicking 28 days ago

  • Status changed from New to Accepted
  • Is Regression set to Yes
Actions #5

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.

Actions #6

Updated by Friedemann Altrock 9 days ago

  • Related to Bug #106838: Editors can not delete folders in filelist added
Actions #7

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

Actions

Also available in: Atom PDF