Project

General

Profile

Actions

Bug #52173

closed

Wrong storage is selected if file is outside of available storages

Added by Markus Klein over 10 years ago. Updated over 5 years ago.

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.png

Configured storages:
  • fileadmin/user_upload/
  • uploads/

Result:
Storage fileadmin/user_upload/ is selected, since it "best matches" with "fileadmin".


Related issues 1 (0 open1 closed)

Blocked by TYPO3 Core - Feature #45498: Find best-matching local storage instead of default-storageClosedStefan Neufeind2013-02-15

Actions
Actions

Also available in: Atom PDF