Bug #95481
closedConfiguring custom PageRenderer template can throw exception
100%
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.
Updated by Nikita Hovratov about 3 years ago
- Related to Bug #95436: Always resolve static resources URIs with new API added
Updated by Nikita Hovratov about 3 years ago
- Related to Bug #95437: Properly calculate web path for composer packages added
Updated by Nikita Hovratov about 3 years ago
- Related to deleted (Bug #95436: Always resolve static resources URIs with new API)
Updated by Gerrit Code Review about 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71456
Updated by Gerrit Code Review about 3 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Gerrit Code Review about 3 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Gerrit Code Review about 3 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Helmut Hummel about 3 years ago
- Related to Bug #95495: GIFBUILDER: default font does not pass sanitizing added
Updated by Gerrit Code Review about 3 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Gerrit Code Review about 3 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71457
Updated by Helmut Hummel about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c86b292962c7d54a66aa9254af5ba00dcbfe6a8f.
Updated by Helmut Hummel about 3 years ago
- Related to Bug #95644: favicon doesn't work in TYPO3 11.5.1 anymore / FilePathSanitizer problem? added
Updated by Christian Kuhn almost 3 years ago
- Related to Bug #96098: includeCSS.inline = 1 not working as expected with EXT: added