Actions
Bug #89517
openWrong sys_file record created by ResourceFactory->getFileObjectFromCombinedIdentifier()
Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2019-10-25
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
This was done on a Windows server with a case-sensitive file storage:
Name of file on file system: 'test.txt'
$resourceFactory = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance();
$file = $resourceFactory->getFileObjectFromCombinedIdentifier('1:/test.TXT');
Surprisingly, a file object is returned after executing above code, even though the file storage is defined as case-sensitive and no file with the name 'test.TXT' exists.
It turns out that a new sys_file record with identifier '/test.TXT' was created, which is clearly wrong, as no such file exists.
The Windows file system might not be case-sensitive, but file names CAN BE mixed case. If such a site is migrated to Linux, this will inevitably lead to problems, when identifiers in sys_file don't match the actual file name.
Actions