[BUGFIX] Do not register storage factory slot during install 53/23653/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 4 Sep 2013 17:55:56 +0000 (19:55 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Fri, 6 Sep 2013 09:32:46 +0000 (11:32 +0200)
In install tool context TYPO3_MODE is set to BE
but there is no backend user initialized.
Because of that the storage permission aspect
fails as it requires a valid backend user object.

Do not register the slot when in install tool context.

Releases: 6.0, 6.1, 6.2
Resolves: #51733
Change-Id: I45090b389ba8c641ba49e9f8e59004aac47853e7
Reviewed-on: https://review.typo3.org/23653
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/ext_localconf.php

index a683ba6..fc806e0 100644 (file)
@@ -3,7 +3,7 @@ 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,