Bug #85583
closedFilelist module inaccessible after creating folder with upper case chars
100%
Description
On a server with a case sensitive file system, new created directories in the TYPO3 backend are not converted to lower case, when the default storage is not configured to use case sensitive identifiers.
Steps to reproduce:
1. Make sure, your TYPO3 is running on a case sensitive filesystem (e.g. linux)
2. Make sure, "Uses case sensitive identifiers" is not checked for the default storage
3. Open filelist module and create a directory named "Test1234Test"
4. TYPO3 throws an exception "Folder "/test1234test/" does not exist."
The directory name in FAL is likely converted to lower case, but the directory is created in as "Test1234Test"
drwxrwsr-x 2 www-data www-data 4096 Jul 17 20:41 Test1234Test/
The whole filelist module is now now accessible any more and the folder needs to be removed/renamed manually on the filesystem.
Updated by Torben Hansen over 6 years ago
When creating a new file in the filelist module, the "TYPO3\CMS\Core\Resource\Driver\LocalDriver->createFile" function uses "canonicalizeAndCheckFileIdentifier()" to make sure, that filenames are always converted to lower case, if the file system is not configured as case sensitive (see https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Resource/Driver/AbstractHierarchicalFilesystemDriver.php#L91)
This sanitation seems to be missing for the creation of new folders in FAL. In order to make new file- and folder-creation consistent, both actions should take the "Uses case sensitive identifiers" setting into account and convert file-/foldernames to lowercase, if the setting is not checked.
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59880
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59880
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59931
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a21a70367c234d2e4eded42fddb31db8a29c9e0d.
Updated by Gerrit Code Review over 5 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60578
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60578
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
Applied in changeset 691be4db7adcb41e53aff2ae806b6ddb7e1de598.