Project

General

Profile

Actions

Bug #99434

closed

Keep the $GLOBALS variables unto redirect to install tool

Added by Franz Holzinger almost 2 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
Start date:
2022-12-29
Due date:
% Done:

0%

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

Description

The TYPO3 backend executes a bootstrap and initializes all global variables correctly. However the administration tasks executed in the install tool do not have those variables. This breaks e.g. the feature of class replacement (former XCLASS) by
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][...] .

This happens in the function \TYPO3\CMS\Install\Controller\BackendModuleController::setAuthorizedAndRedirect

$redirectLocation = PathUtility::getAbsoluteWebPath('install.php?install[controller]=' . $controller . '&install[context]=backend');
return new RedirectResponse($redirectLocation, 303);

Solution: The formerly initialized global variables must be saved in a session variable before the redirect and immediately restored after the redirect to the install tool.

See also Slack:

https://typo3.slack.com/archives/C025BQLFA/p1672171922498789


Files

patch-99434.diff (957 Bytes) patch-99434.diff Franz Holzinger, 2022-12-29 13:33
patch-99434-2.diff (1.01 KB) patch-99434-2.diff Franz Holzinger, 2022-12-30 12:48

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #95708: clear cache Hook not executed with Admin Tools -> Maintenance -> Flush CacheClosed2021-10-19

Actions
Related to TYPO3 Core - Bug #91984: Extension configuration prefills from AdditionalConfiguration and saves values to LocalConfiguration, behaving different than the normal configuration UINew2020-08-12

Actions
Actions

Also available in: Atom PDF