Issue Bug Closed

#82407Regression in templatePath resolving

Rens Admiraal 09/09/17, 14:23 updated 09/09/17, 14:51

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.

Reviews 3