Bug #55299
closedconflictMode rename is not working when uploading file with umlaut
100%
Description
To reproduce this:
Upload a file called Müller.jpg via
$file = $folder->getStorage()->addUploadedFile($fileUpload->getFileUploadArray(), $folder, NULL, $conflictMode);
Then again upload a file called Müller.jpg. Normally FAL should create a file called Müller_01.jpg (Mueller_01.jpg).
Erroneously the original file will be overwritten.
The problem is, that FAL checks if Müller.jpg exits, but this file does not exist because it will be renamed in Mueller.jpg after upload.
So FAL uploads the new file, renames it in Mueller.jpg and the original file is overwritten.
Files
Updated by Frans Saris almost 11 years ago
- Status changed from New to Accepted
In ResourceStorage->addFile() we need to call driver->sanitizeFileName() before calling driver->fileExistsInFolder()
Updated by Gerrit Code Review over 10 years ago
- Status changed from Accepted 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/27806
Updated by Gerrit Code Review over 10 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/27806
Updated by Markus Klein over 10 years ago
- File filenames_different.jpg filenames_different.jpg added
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27806
Updated by Gerrit Code Review over 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27806
Updated by Frans Saris over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 054207881d3be1d76b8205231c8847947d5c2e4c.