Skip to content
Snippets Groups Projects
Commit bbe45c69 authored by Christian Kuhn's avatar Christian Kuhn Committed by Susanne Moog
Browse files

[TASK] Install tool fails if LocalConfiguration EXT/extConf does not exist

On fresh instances, the install tool may fail if path EXT/extConf
which is written as b/w compat layer does not exist, yet.
Patch catches the (generic) exception from ArrayUtility->getValueByPath()
and initializes the value to an empty array to continue in this case.

Resolves: #83298
Related: #82368
Releases: master
Change-Id: Iffac458a9e42183139ab4425082abb6f78944ffd
Reviewed-on: https://review.typo3.org/55044


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 357547db
Branches
Tags
No related merge requests found
......@@ -104,7 +104,12 @@ class LayoutController extends AbstractController
public function executeSilentLegacyExtConfExtensionConfigurationUpdateAction(): ResponseInterface
{
$configurationManager = new ConfigurationManager();
$oldExtConfSettings = $configurationManager->getConfigurationValueByPath('EXT/extConf');
try {
$oldExtConfSettings = $configurationManager->getConfigurationValueByPath('EXT/extConf');
} catch (\RuntimeException $e) {
// The old 'extConf' array may not exist anymore, set to empty array if so.
$oldExtConfSettings = [];
}
$newExtensionSettings = $configurationManager->getConfigurationValueByPath('EXTENSIONS');
foreach ($oldExtConfSettings as $extensionName => $extensionSettings) {
if (!array_key_exists($extensionName, $newExtensionSettings)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment