Review 13.4 Abandoned

94568[BUGFIX] Respect pid=0 and rooLevelRestriction in DH::versionizeRecord

Garvin Hicking CR 0 V 0 Easy +33 −2 updated 07/16/26, 14:03

Commit message

DataHandler in versionizeRecord() does not respect file metadata
which are stored on `pid=0`

sys_file_metadata wit pid=0 causes an empty page record which gets
passed down to the BE_user `isInWebMount()` throwing an exception
because no `uid` is provided in the empty array.

This change modifies versionizeRecord() to reintroduce checks
for the TCA option `ignoreRootLevelRestriction` when record pid
is zero, not calling `isInWebMount()` with an empty page record.

Copied condition from DataHandler::localize() which handles same
case.

\TYPO3\CMS\Workspaces\Hook\DataHandlerHook::version_setStage()
has the same issue. So boilerplate is added there too.

Review

  • Code review CR 0
  • Verified V 0
    • core-ci +1 CI

Issues 2

Files 2

Review log 23

  1. Garvin Hicking commented on patch set 1 06/24/26, 12:28

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 06/24/26, 12:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/103814

  3. Benni Mack abandoned the change 07/16/26, 14:03

    fixed in latest versions