[FEATURE] Find best-matching local storage instead of default-storage 90/18290/10
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 15 Feb 2013 02:21:57 +0000 (03:21 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Mon, 5 Aug 2013 16:03:16 +0000 (18:03 +0200)
commitc111ddecca0f903a98a57b3d3bd1bbca2c999826
treec305023c923dcbee3bf8db59fc54da076a3b5fcc
parent000e87bbfe523a1da6efed51fb290a4257d6c1f0
[FEATURE] Find best-matching local storage instead of default-storage

If no storage-UID is given usually the default-storage will be
used ("legacy-storage"). Some problems with not up-to-date
index-records etc. can be prevented by using a matching storage
instead of falling back to the default-storage (ID 0).

Implement search for best matching storage.

Resolves: #45498
Releases: 6.2
Change-Id: Ife00d68314fe43804227bb26280d0d475cbaf10b
Reviewed-on: https://review.typo3.org/18290
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/core/Classes/Resource/ResourceFactory.php
typo3/sysext/core/Classes/Resource/StorageRepository.php
typo3/sysext/core/Tests/Unit/Resource/FactoryTest.php