Bug #95481

Configuring custom PageRenderer template can throw exception

Added by Chris Müller 4 months ago. Updated 3 months ago.

Status:
Resolved
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

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 sanitizingResolved2021-10-06

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

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

Actions
#1

Updated by Nikita Hovratov 4 months ago

  • Related to Bug #95436: Always resolve static resources URIs with new API added
#2

Updated by Nikita Hovratov 4 months ago

  • Related to Bug #95437: Properly calculate web path for composer packages added
#3

Updated by Nikita Hovratov 4 months ago

  • Related to deleted (Bug #95436: Always resolve static resources URIs with new API)
#4

Updated by Gerrit Code Review 4 months 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

#5

Updated by Gerrit Code Review 4 months 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

#6

Updated by Gerrit Code Review 4 months 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

#7

Updated by Gerrit Code Review 4 months 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

#8

Updated by Gerrit Code Review 4 months 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

#9

Updated by Gerrit Code Review 4 months 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

#10

Updated by Gerrit Code Review 3 months 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

#11

Updated by Gerrit Code Review 3 months 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

#12

Updated by Helmut Hummel 3 months ago

  • Related to Bug #95495: GIFBUILDER: default font does not pass sanitizing added
#13

Updated by Gerrit Code Review 3 months 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

#14

Updated by Gerrit Code Review 3 months 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

#15

Updated by Helmut Hummel 3 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#16

Updated by Helmut Hummel 3 months ago

  • Related to Bug #95644: favicon doesn't work in TYPO3 11.5.1 anymore / FilePathSanitizer problem? added
#17

Updated by Christian Kuhn about 2 months ago

  • Related to Bug #96098: includeCSS.inline = 1 not working as expected with EXT: added

Also available in: Atom PDF