Project

General

Profile

Actions

Bug #89517

open

Wrong sys_file record created by ResourceFactory->getFileObjectFromCombinedIdentifier()

Added by Michael Stopp about 5 years ago. Updated over 4 years ago.

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #89461: Errors with mixed case file names in case-insensitive storageClosed2019-10-20

Actions
Actions

Also available in: Atom PDF