Bug #52173
closedWrong storage is selected if file is outside of available storages
100%
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".
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23966
Updated by Gerrit Code Review about 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23966
Updated by Gerrit Code Review about 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23966
Updated by Gerrit Code Review about 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23966
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/23993
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/23994
Updated by Ernesto Baschny about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 14b4edb7765b9e6c2a831198f6de56c9e5ac3696.
Updated by Gerrit Code Review about 11 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24071
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25232
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25233
Updated by Ernesto Baschny about 11 years ago
- Status changed from Under Review to Resolved
Applied in changeset 5582b8afc2210e0927e5ef1cf2d62efe9d6def59.