Project

General

Profile

Actions

Bug #55299

closed

conflictMode rename is not working when uploading file with umlaut

Added by Eike Starkmann almost 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-01-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

filenames_different.jpg (70.6 KB) filenames_different.jpg Patch works, but filename is displayed differently Markus Klein, 2014-02-26 23:06

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #56181: FAL can't handle folder names starting with umlauts properlyClosed2014-02-21

Actions
Related to TYPO3 Core - Bug #54357: Inconsistent usage of filename sanitationClosed2013-12-12

Actions
Actions

Also available in: Atom PDF