Actions
Bug #52173
closedWrong storage is selected if file is outside of available storages
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-09-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
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".
Actions