Project

General

Profile

Bug #88082

Updated by Torben Hansen over 5 years ago

The FrontendUserImageUpdateWizard copies images from /uploads/pics/ to fileadmin/_migrated/, but fails to lookup the copied images in FAL when there are multiple storages. 

 <pre> <code> 
     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'); 
     } 
 </pre> </code> 

 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.

Back