Bug #81624
closedContentObjectRenderer not fully initialized in f:format.html ViewHelper
100%
Description
\TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlViewHelper->renderStatic() misses a call to \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->start() after instantiation and before it passes the content to parseFunc.
Because of this the $hookObjects of ContentObjectRenderer are not initialized during the processing with parseFunc in f.format.html. This makes it impossible to apply own TypoScript cObjects via $this->cObjHookObjectsRegistry (like the XSLT or XPATH content objects for example) or own extensions to stdWrap functions via $this->stdWrapHookObjects.
The solution is to call $contentObject->start([], '') after instantiation (just like it's done in TYPO3\CMS\Fluid\ViewHelpers\Link\TypolinkViewHelper).
This issue applies to all versions from 7.6 onwards.
Updated by Gerrit Code Review over 7 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/53264
Updated by Gerrit Code Review over 7 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/53264
Updated by Gerrit Code Review over 7 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/53264
Updated by Markus Klein over 7 years ago
- Related to Bug #75314: HtmlViewHelper ignores stdwrap hooks added
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53336
Updated by Torsten Schrade over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3ba04e4b05cc2fb141b02d338bae6e40fbde1e93.
Updated by Gerrit Code Review over 7 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53338
Updated by Torsten Schrade over 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset b3316347ac6fad2a68d8f8466221d123696942fb.