Review 14.3 Merged

95528[BUGFIX] Skip inaccessible file references in FileCollector

Georg Ringer CR +2 V +2 Easy +11 −1 updated 09/01/26, 20:04

Commit message

FileCollector::addFileReferences() handed each uid to
ResourceFactory::getFileReferenceObject(), which throws when the
sys_file_reference record cannot be fetched. In the frontend the record
is looked up through PageRepository::checkRecord(), so a hidden
reference yields no data and the exception took down the whole page
render for every visitor.

Hidden references are inaccessible to the frontend by design, so they
are skipped now, just like the relation based lookup in the same class
already skips references whose file has gone missing.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
  • Verified V +2 Done
    • Georg Ringer +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Georg Ringer commented on patch set 1 09/01/26, 19:42

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/01/26, 19:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107515

  3. Georg Ringer voted on patch set 1 CR +2 V +2 09/01/26, 20:04

  4. Georg Ringer merged patch set 2 09/01/26, 20:04