Project

General

Profile

Actions

Bug #95481

closed

Configuring custom PageRenderer template can throw exception

Added by Chris Müller about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-10-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have an own PageRenderer template and configured it in TypoScript:

config {
  pageRendererTemplateFile = EXT:site/Resources/Private/Templates/PageRenderer.html
}

It is stored under "Resources/Private" (should not be available from outside). Now I am getting the error:

#1630089406 RuntimeException
Resource paths must start with "EXT:" and must reference Resources/Public
in /var/www/html/public/typo3/sysext/core/Classes/Utility/PathUtility.php line 100

at TYPO3\CMS\Core\Utility\PathUtility::getPublicResourceWebPath('EXT:site/Resources/Private/Templates/PageRenderer.html', false)
in /var/www/html/public/typo3/sysext/frontend/Classes/Resource/FilePathSanitizer.php line 82

at TYPO3\CMS\Frontend\Resource\FilePathSanitizer->sanitize('EXT:site/Resources/Private/Templates/PageRenderer.html')
in /var/www/html/public/typo3/sysext/frontend/Classes/Http/RequestHandler.php line 244

at TYPO3\CMS\Frontend\Http\RequestHandler->processHtmlBasedRenderingSettings(object(TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController), object(TYPO3\CMS\Core\Site\Entity\SiteLanguage), object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/frontend/Classes/Http/RequestHandler.php line 187

at TYPO3\CMS\Frontend\Http\RequestHandler->generatePageContent(object(TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController), object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/frontend/Classes/Http/RequestHandler.php line 140

at TYPO3\CMS\Frontend\Http\RequestHandler->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/public/typo3/sysext/core/Classes/Middleware/ResponsePropagation.php line 34

...

Of course, I can store it under "Resources/Public", but IMHO it shouldn't be stored there.


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #95437: Properly calculate web path for composer packagesClosed2021-10-01

Actions
Related to TYPO3 Core - Bug #95495: GIFBUILDER: default font does not pass sanitizingClosed2021-10-06

Actions
Related to TYPO3 Core - Bug #95644: favicon doesn't work in TYPO3 11.5.1 anymore / FilePathSanitizer problem?Closed2021-10-14

Actions
Related to TYPO3 Core - Bug #96098: includeCSS.inline = 1 not working as expected with EXT: Closed2021-11-27

Actions
Actions

Also available in: Atom PDF