Review 13.4 Merged

89811[BUGFIX] Ignore permissions for folder deletion recycler lookup

Garvin Hicking CR +2 V +2 Easy +12 −0 updated 06/23/25, 16:49

Commit message

With #96863 a check was introduced to recursively look for a
recycler when directories get deleted, so they can be put there
instead of just hard-deleting folders.

That check however fails in scenarios where directory mounts
are used, and iterating outside the root mount directory is
not allowed via the InsufficientFolderAccessException.

This patch disables the permission checks for finding a recycler
and moving the folder to it, same as in the `deleteFile` method.

This also prevents an exception when a `_recycler_` folder is to be
deleted, and TYPO3 would use the folder itself as the move target.

Review

  • Code review CR +2 Done
    • Garvin Hicking +2
  • Verified V +2 Done
    • Garvin Hicking +2
    • core-ci +1 CI

Issues 3

Files 1

Review log 34

  1. Garvin Hicking commented on patch set 1 06/23/25, 16:30

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 06/23/25, 16:44 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/80647

  3. Garvin Hicking voted on patch set 1 CR +2 V +2 06/23/25, 16:49

  4. Garvin Hicking merged patch set 2 06/23/25, 16:49