[FEATURE] Find best-matching local storage instead of default-storage 60/23560/4
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 15 Feb 2013 02:21:57 +0000 (03:21 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Sun, 8 Sep 2013 18:35:02 +0000 (20:35 +0200)
commit046967d98785ce5a363158661f061b9ae505d248
tree538d2ed8ef7feaba2bf544f2c19e068cd5669ca7
parent4a80aa532c52aaaf4b2136ed58a70b1c61580ec6
[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.0, 6.1, 6.2
Change-Id: Ife00d68314fe43804227bb26280d0d475cbaf10b
Reviewed-on: https://review.typo3.org/23560
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/ResourceFactory.php
typo3/sysext/core/Classes/Resource/StorageRepository.php
typo3/sysext/core/Tests/Unit/Resource/ResourceFactoryTest.php