Actions
Bug #88082
closedFrontendUserImageUpdateWizard fails, when there are multiple storages
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2019-04-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The FrontendUserImageUpdateWizard copies images from /uploads/pics/ to fileadmin/_migrated/, but fails to lookup the copied images in FAL when there are multiple storages.
public function init() { $storages = GeneralUtility::makeInstance(StorageRepository::class)->findAll(); $this->storage = $storages[0]; $this->registry = GeneralUtility::makeInstance(Registry::class); $this->recordOffset = $this->registry->get($this->registryNamespace, 'recordOffset'); }
When there are multiple storages, $storages[0]
will not always be the fileadmin storage, since initializeLocalCache
in StorageRepository
uses ->orderBy('name')
when all available storages are initialized.
The FrontendUserImageUpdateWizard should either work with the default storage for both the copy and the lookup operation or ,if $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] is used for the copy process, lookup for a storage named like the fileadminDir configured.
Actions