Review main Ready for review

97935[BUGFIX] Show hosts of sites below a web mount

Matthias Vogel CR +1 V +1 Hard +597 −50 updated 11/27/26, 01:23

Commit message

The redirects module now shows the hosts of every site whose root page
is a web mount or is below a web mount, as isInWebMount() decides.
WebMountSiteFinder resolves the ancestries of all site root pages with
one query, so the number of queries does not grow with the number of
sites.

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 4
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/35/97935/4 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/35/97935/4 && git cherry-pick FETCH_HEAD

Review

  • Code review CR +1 Needs a vote
    • Benjamin Kott +1
  • Verified V +1 Needs a vote
    • Benjamin Kott +1
    • core-ci +1 CI

Merge conflicts 2

Issues 2

Files 12

Review log 711

  1. Matthias Vogel uploaded patch set 1 11/24/26, 12:53

  2. core-ci voted on patch set 1 V +1 11/24/26, 13:10 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115243

  3. Benjamin Kott uploaded patch set 2 V +1 11/24/26, 20:59

  4. Benjamin Kott commented on patch set 2 11/24/26, 21:00

    PS2: - WebMountSiteFinder resolves the ancestries of all site root pages with one query (new PageAncestryResolver::resolveMultiple() and PageAncestryRepository::findAncestries()). It gives the page rows to isInWebMount(). Before, each site caused two queries. The new test numberOfQueriesDoesNotDependOnNumberOfSites shows this. - isSiteReachable() is now isSiteAccessible(), as in getAccessibleHosts(). The comments and the commit message use "has access to" and "web mount". - New test: the permission guard rejects a redirect for a site outside the web mount. - The 14.3 backport needs its own version, because 14.3 has no PageAncestryResolver.
  5. core-ci voted on patch set 2 V +1 11/24/26, 21:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115327

  6. Benjamin Kott updated the commit message in patch set 3 V +1 11/24/26, 21:08

  7. core-ci voted on patch set 3 V +1 11/24/26, 21:16 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115328

  8. Matthias Vogel commented on patch set 3 11/25/26, 07:12

    Reply

    Acknowledged
  9. Benjamin Kott uploaded patch set 4 V +1 11/27/26, 00:53

  10. core-ci voted on patch set 4 V +1 11/27/26, 01:02 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115641

  11. Benjamin Kott voted on patch set 4 CR +1 V +1 11/27/26, 01:23