Issue Bug Under Review Stale

#110654Site Identifier with dots produces invalid cache identifier

Christian Weilguny 09/08/26, 12:23 updated 09/09/26, 14:28

Description

Site identifiers (folders in config/sites/) with dots are allowed according to the docs, and at least worked in v12. In v14.3 (tested in 14.3.6 and 14.3.7) this produces a `#1264023823 InvalidArgumentException` with the error message `“pagetsconfig-site-foo.bar_8b3395f969f83b83” is not a valid cache entry identifier` (where foo.bar is used as site identifier) when you try to open this site in the frontend. Also backend modules which use the page tree, show this error if you click this site in the page tree. TypoScript and Page TSConfig modules show the same error as the frontend. The Layout and Records module complain about missing PageContext, which is probably just an issue produced downstream when the cache entry is not available.

\TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::get($entryIdentifier) validates $entryIdentifier which then is checked against \TYPO3\CMS\Core\Cache\Frontend\FrontendInterface::PATTERN_ENTRYIDENTIFIER, and this regex doesn’t allow dots.

Just removing the dots from the site identifier fixes this.

Reviews 1

History 13