Issue Bug Closed

#106838Editors can not delete folders in filelist

taywa gmbh 06/05/25, 20:26 updated 06/10/25, 12:25

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.

Reviews 2

Files 5

History 79

  1. taywa gmbh commented <span data-processor="relativetime" data-value="2025-06-05T20:40:23+00:00" > 06/05/25, 20:40 </span>

    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

  2. Garvin Hicking commented and changed status New Accepted <span data-processor="relativetime" data-value="2025-06-06T07:48:54+00:00" > 06/06/25, 07:48 </span>

    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)

  3. Ralf Hüskes commented <span data-processor="relativetime" data-value="2025-06-08T11:41:08+00:00" > 06/08/25, 11:41 </span>

    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

  4. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-06-10T06:52:15+00:00" > 06/10/25, 06:52 </span>

    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).

  5. Gerrit Code Review pushed patch set 1 for main to change 89681 status Accepted Under Review <span data-processor="relativetime" data-value="2025-06-10T07:04:43+00:00" > 06/10/25, 07:04 </span>

  6. Garvin Hicking commented and changed status Under Review Closed <span data-processor="relativetime" data-value="2025-06-10T12:25:13+00:00" > 06/10/25, 12:25 </span>

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