Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress

97642[TASK] Build the record path of a page along the cached page ancestry

Benni Mack CR 0 V -1 Normal +124 −9 updated 11/14/26, 10:40

Commit message

BackendUtility::getRecordPath() builds the path of a page shown in
the record list, the live search, FormEngine wizards, previews of
content elements, the workspaces module and others. It used
BEgetRootLine(), which fetches one page per query, plus a workspace
overlay per page in a workspace. An optional SQL clause - typically
the page permissions of the backend user - ends the path at the
first page not matching it.

PageAncestryResolver::resolveMatching() resolves the cached page
ancestry and ends it at the first page not matching an SQL clause,
which is evaluated on the live pages with one further query. Any
clause works as before, also one modified by the hook of
getPagePermsClause().

The paths stay the same. For a page on level seven, a path needs 1
instead of 7 queries in live and 2 instead of 14 queries in a
workspace, plus one query for a permission clause.

BEgetRootLine() is now only used by isInWebMount() with a custom
permission clause.

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

Review

  • Code review CR 0 Needs a vote
  • Verified V -1 Blocked
    • core-ci -1 CI

Issues 2

Files 5

Review log 24

  1. Benni Mack uploaded patch set 1 11/14/26, 10:14

  2. Benni Mack rebased onto patch set 2 11/14/26, 10:14

  3. core-ci voted on patch set 1 V -1 11/14/26, 10:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114428

  4. core-ci voted on patch set 2 V -1 11/14/26, 10:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114430