Project

General

Profile

Actions

Bug #106838

closed

Editors can not delete folders in filelist

Added by taywa gmbh 14 days ago. Updated 9 days ago.

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

0%

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

Description

Admins can delete folders, editors can't - even if they have permission to do so in the "Directory" settings of the user itself or the group the file mounts are inherited from.

Reproduce on demo.typo3.org (v13.4.13):
1. create empty folder
2. try to delete empty folder

It works in every typo3 v12 version.


Files

Screenshot from 2025-06-05 22-14-07.png (12.1 KB) Screenshot from 2025-06-05 22-14-07.png 3. confirm deleting folder taywa gmbh, 2025-06-05 20:15
Screenshot from 2025-06-05 22-14-27.png (80.1 KB) Screenshot from 2025-06-05 22-14-27.png 4. error "You are not allowed to access the directory." taywa gmbh, 2025-06-05 20:15
Screenshot from 2025-06-05 22-13-51.png (71.2 KB) Screenshot from 2025-06-05 22-13-51.png 2. try to delete empty folder taywa gmbh, 2025-06-05 20:15
Screenshot from 2025-06-05 22-13-41.png (65.2 KB) Screenshot from 2025-06-05 22-13-41.png 1. create empty folder taywa gmbh, 2025-06-05 20:15
Screenshot from 2025-06-05 22-19-26.png (36 KB) Screenshot from 2025-06-05 22-19-26.png User Directory: Delete is enabled taywa gmbh, 2025-06-05 20:20

Related issues 2 (1 open1 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 #106748: Editors cannot delete folders – getNearestRecyclerFolder throws InsufficientFolderAccessPermissionsExceptionUnder Review2025-05-22

Actions
Actions #1

Updated by taywa gmbh 14 days ago

More observations:
- The Folder can be cut / pasted to a different location
- Folder can be drag'n'droped to a different location in tree
- Deleting does not work in tiles or list view or the context menu
- Filesystem level permissions are not the cause - www user has rwx
- Happens in Composer and classic installation

Actions #2

Updated by Garvin Hicking 13 days ago

  • Status changed from New to Accepted

I could reproduce this locally.

It seems to stem from the fact that read-access is checked on the root-level of a file-storage, which editors may not have in mount scenarios (!).

In this case, TYPO3\CMS\Core\Resource\ResourceStorage->assureFolderReadPermission() gets called with that root, and throws the InsufficientFolderAccessPermissionsException after checkFolderActionPermission('read', '/') failed.

(I think to remember a patch made specifically for mount scenarios, but could not dive deeper into this yet)

Actions #3

Updated by Ralf Hüskes 11 days ago

I can also confirm the behavior in two TYPO3 v13.4.13 versions.
My observations coincide with those of taywa!

All rights are set. Moving, etc... is possible... only deleting does not work

Actions #4

Updated by Garvin Hicking 10 days ago

https://github.com/TYPO3/typo3/commit/1ed4654461bdc88db2511c6a736b9cdc153310cb is the commit that caused this. Most likely because the recycler iteration goes outside the scope of the permissions, I guess (not checked yet).

Actions #5

Updated by Garvin Hicking 10 days ago

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

Updated by Gerrit Code Review 10 days ago

  • Status changed from Accepted to Under Review

Patch set 1 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 #7

Updated by Friedemann Altrock 9 days ago

  • Related to Bug #106748: Editors cannot delete folders – getNearestRecyclerFolder throws InsufficientFolderAccessPermissionsException added
Actions #8

Updated by Gerrit Code Review 9 days ago

Patch set 2 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 #9

Updated by Garvin Hicking 9 days ago

  • Status changed from Under Review to Closed

Closing this issue due to #106748 which was the initial report (that I... totally forgot about and investigated all of this TWICE :D )

Actions

Also available in: Atom PDF