Review 13.4 Merged

89969[BUGFIX] Allow recursive restore of records via recylcer for editors

Oli Bartsch CR +2 V +2 Normal +23 −31 updated 07/02/25, 10:56

Commit message

The current approach to lookup deleted records in the recycler module
is to apply a fragile runtime TCA modification that effectively removes
the `delete` ctrl from pages in order to make rootline based
`isInWebMount` checks work.

This works in most cases, but there are corner cases where recursive
records are checked, and `BackendUserAuthentication::isInWebMount`
uses `BackendUtility::getPageForRootline` to obtain a rootline
both for deleted content elements and for pages, but it does only
apply the TCA modification when processing pages, not when checking
content elements. This results in an invalid (runtime) rootline cache
being generated/used when creating the list of deleted pages *and*
content elements.

Instead of faking TCA (which will require schema rebuilds once we
migrate to TCA schema) or extending the rootline cache to hash current
schema/TCA  the relevant access checking methods now learn to ignore the
delete-restriction instead of invalidly and globally modifying TCA.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 2

Files 4

Review log 34

  1. Oli Bartsch uploaded patch set 1 07/02/25, 10:44

  2. core-ci voted on patch set 1 V +1 07/02/25, 10:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/81240

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 07/02/25, 10:56

  4. Oli Bartsch merged patch set 2 07/02/25, 10:56