Project

General

Profile

Actions

Bug #95174

closed

pageNotFoundAction not working properly in Extbase with feature toggle subrequestPageErrors turned on

Added by Torben Hansen about 3 years ago. Updated about 3 years ago.

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

100%

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

Description

When the feature toggle subrequestPageErrors is turned on, the subrequest does not properly fetch the configured page uid of the error handler and return an "empty" (just some basic TYPO3 HTML available) page instead.

How to reproduce:

Ensure that the TYPO3 page error handler is configured to show the content of a TYPO3 page and that that page contains some content to be shown.

The most easy way to reproduce the problem is to test it in TYPO3 core ext:felogin, which is an Extbase extension with a frontend plugin. Add the plugin "Frontend Login" to a page in the pagetree and open the page in the frontend. The login form should be shown.

Now in TYPO3\CMS\FrontendLogin\Controller\LoginController::loginAction add the following code to the start of the action:

$response = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\Controller\ErrorController::class)->pageNotFoundAction(
    $this->request,
    'Object not found.'
);
throw new \TYPO3\CMS\Core\Http\PropagateResponseException($response, 1631261423);

With subrequestPageErrors feature toggle turned off, the content of the configured error page is shown. When the feature flag is turned on, only a blank page is shown.


Related issues 4 (1 open3 closed)

Related to TYPO3 Core - Bug #94402: Don't issue second HTTP request for error handlingClosed2021-06-23

Actions
Related to TYPO3 Core - Task #95253: Make in-process subrequests opt-inClosedLarry Garfield2021-09-16

Actions
Related to TYPO3 Core - Task #96273: Remove TypoScriptFrontendController container entryClosedBenjamin Franzke2021-12-07

Actions
Related to TYPO3 Core - Bug #104320: Broken page rendering with PropagateResponseException from extbaseAccepted2024-07-06

Actions
Actions

Also available in: Atom PDF