Project

General

Profile

Actions

Bug #95481

closed

Configuring custom PageRenderer template can throw exception

Added by Chris Müller over 2 years ago. Updated over 1 year 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 #1

Updated by Nikita Hovratov over 2 years ago

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

Updated by Nikita Hovratov over 2 years ago

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

Updated by Nikita Hovratov over 2 years ago

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

Updated by Gerrit Code Review over 2 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

Actions #5

Updated by Gerrit Code Review over 2 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

Actions #6

Updated by Gerrit Code Review over 2 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

Actions #7

Updated by Gerrit Code Review over 2 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

Actions #8

Updated by Gerrit Code Review over 2 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

Actions #9

Updated by Gerrit Code Review over 2 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

Actions #10

Updated by Gerrit Code Review over 2 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

Actions #11

Updated by Gerrit Code Review over 2 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

Actions #12

Updated by Helmut Hummel over 2 years ago

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

Updated by Gerrit Code Review over 2 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

Actions #14

Updated by Gerrit Code Review over 2 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

Actions #15

Updated by Helmut Hummel over 2 years ago

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

Updated by Helmut Hummel over 2 years ago

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

Updated by Christian Kuhn over 2 years ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF