Project

General

Profile

Actions

Bug #82407

closed

Regression in templatePath resolving

Added by Rens Admiraal about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-09-09
Due date:
% Done:

0%

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

Description

It seems like https://review.typo3.org/#/c/53932/ introduced a regression in 8.7.6 which can possibly be fixed by getting the changes of https://review.typo3.org/#/c/53872 in.

What happens:

I render a typoscript object using:

<f:cObject typoscriptObjectPath="lib.myObject" />

The object looks like:

lib.myObject = USER
lib.myObject {
        userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
        pluginName = Pi1
        extensionName = Extension
        vendorName = Vendor
        controller = Controller
        action = index

        view {
            layoutRootPaths.0 = EXT:extension/Resources/Private/Layouts/
            partialRootPaths.0 = EXT:extension/Resources/Private/Partials/
            templateRootPaths.0 = EXT:extension/Resources/Private/Templates/
        }
}

This leads to No template was found. View could not be resolved for action "index"

I debugged this and it seems like inside \TYPO3\CMS\Fluid\View\TemplateView::canRender everything is still configured correctly, but then after the call to $this->setControllerContext($controllerContext); all paths are reset to the \TYPO3Fluid\Fluid\View\TemplatePaths::DEFAULT_* constants.


Related issues 2 (0 open2 closed)

Is duplicate of TYPO3 Core - Task #82347: [BUGFIX] Fix certain fluid template overwrites (like PaginateViewHelper)Closed2017-09-07

Actions
Is duplicate of TYPO3 Core - Bug #82344: Can't overwrite PaginateViewHelper template anymore since 8.7.5Closed2017-09-07

Actions
Actions

Also available in: Atom PDF