#52173Wrong storage is selected if file is outside of available storages
Description
findBestMatchingStorageByLocalPath() does not check whether a requested file actually exists in the selected storage.
It selects the “best matching storage”, but this might not contain the actual file if it is requested from a path outside of the available storages.
Example:
page.10 = IMAGE page.10.file = fileadmin/images/dummy.pngConfigured storages:
- fileadmin/user_upload/
- uploads/
Result:
Storage fileadmin/user_upload/ is selected, since it “best matches” with “fileadmin”.
Reviews 6
- TYPO3_6-0 25233[BUGFIX] Correct storage selection (follow-up)
- TYPO3_6-1 25232[BUGFIX] Correct storage selection (follow-up)
- main 24071[BUGFIX] Correct storage selection (follow-up)
- main 23966[BUGFIX] Correct storage selection (common prefixes)
- TYPO3_6-1 23993[BUGFIX] Correct storage selection (common prefixes)
- TYPO3_6-0 23994[BUGFIX] Correct storage selection (common prefixes)