Project

General

Profile

Actions

Bug #99287

open

Request missing for StandardContentPreviewRenderer View

Added by Daniel Siepmann over 1 year ago. Updated 12 months ago.

Status:
Under Review
Priority:
Should have
Category:
-
Target version:
-
Start date:
2022-12-06
Due date:
% Done:

0%

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

Description

Integrators are able to configure a custom Fluid template per content element.
This template is rendered via StandardContentPreviewRenderer.

Integrators can use the Uri/EditRecordViewHelper which will break unless the Request is provided by Rendering Context, leading to:


(1/1) Error

Call to a member function getAttribute() on null
in /project/vendor/typo3/cms-backend/Classes/ViewHelpers/Uri/EditRecordViewHelper.php line 77

        }
        if (empty($arguments['returnUrl'])) {
            /** @var RenderingContext $renderingContext */
            $request = $renderingContext->getRequest();
            $arguments['returnUrl'] = $request->getAttribute('normalizedParams')->getRequestUri();
        }

        $params = [
            'edit' => [$arguments['table'] => [$arguments['uid'] => 'edit']],


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #101272: Content preview fails to initialize renderingContext correctlyClosedMarkus Klein2023-07-06

Actions
Actions #1

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76939

Actions #2

Updated by Gerrit Code Review 12 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76939

Actions #3

Updated by Markus Klein 10 months ago

  • Has duplicate Bug #101272: Content preview fails to initialize renderingContext correctly added
Actions

Also available in: Atom PDF