Review main Ready for review

98111[BUGFIX] Skip FAL objects when building Extbase validators

Torben Hansen CR +1 V +1 Easy +31 −0 updated 11/27/26, 17:59

Commit message

ValidatorResolver built nested validators for every
object-typed property. For the Extbase FileReference model
it walked through $originalResource into the core FAL
objects and further down to ProcessedResourceCache, whose
WeakMap property got a collection validator. That property
has no getter, so validating any model with a file
reference threw an exception.

Core resource objects are no domain models, so properties
typed as ResourceInterface no longer get nested validators.
Validators added via #[Validate] on such a property still
apply.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/11/98111/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/11/98111/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR +1 Needs a vote
    • Oliver Klee +1
  • Verified V +1 Needs a vote
    • Oliver Klee +1
    • core-ci +1 CI

Merge conflicts 2

Issues 2

Files 2

Review log 23

  1. Torben Hansen uploaded patch set 1 11/27/26, 17:48

  2. core-ci voted on patch set 1 V +1 11/27/26, 17:57 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115747

  3. Oliver Klee voted on patch set 1 CR +1 V +1 11/27/26, 17:59