[BUGFIX] Upgrade Wizard fails with exception 16/27616/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 13 Feb 2014 16:39:50 +0000 (17:39 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Fri, 14 Feb 2014 17:55:33 +0000 (18:55 +0100)
The package manager throws an exception "core" package
already being registered. This is caused by the signal
which instantiates the PackageManager while in
install tool the actual class is FailsafePackageManager

Solution is to not register the slot in install tool
as the failsafe package manager already takes care
of scanning for available packages.

Releases: 6.2
Resolves: #55969
Change-Id: I34b33e4ed947b532c24265e16dcc52a7aac4487e
Reviewed-on: https://review.typo3.org/27616
Reviewed-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/ext_localconf.php

index 5d8fc76..d56cbd6 100644 (file)
@@ -3,21 +3,19 @@ if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
 
-if (TYPO3_MODE === 'BE') {
+if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
+       \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
+               'TYPO3\\CMS\\Core\\Resource\\ResourceFactory',
+               \TYPO3\CMS\Core\Resource\ResourceFactory::SIGNAL_PostProcessStorage,
+               'TYPO3\\CMS\\Core\\Resource\\Security\\StoragePermissionsAspect',
+               'addUserPermissionsToStorage'
+       );
        \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
                'PackageManagement',
                'packagesMayHaveChanged',
                'TYPO3\\CMS\\Core\\Package\\PackageManager',
                'scanAvailablePackages'
        );
-       if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
-               \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
-                       'TYPO3\\CMS\\Core\\Resource\\ResourceFactory',
-                       \TYPO3\CMS\Core\Resource\ResourceFactory::SIGNAL_PostProcessStorage,
-                       'TYPO3\\CMS\\Core\\Resource\\Security\\StoragePermissionsAspect',
-                       'addUserPermissionsToStorage'
-               );
-       }
 }
 
 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
@@ -25,4 +23,4 @@ if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Core\Resource\ResourceStorage::SIGNAL_PostFileDelete,
        'TYPO3\\CMS\\Core\\Resource\\Processing\\FileDeletionAspect',
        'removeFromRepository'
-);
\ No newline at end of file
+);