Project

General

Profile

Actions

Bug #83341

closed

Rename or delete Files or Folders with Umlauts not working in filelist

Added by Fernandez Daniel almost 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Start date:
2017-12-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Please take note that creating/uploading folders and files with
Umlauts works perfectly!

System should be configured the right way. What i checked:

System environment check it says:

- System locale is correct
- File names with UTF-8 characters can be used. ( [SYS][UTF8filesystem] = true )
- Your database uses utf-8. All good.

phpinfo and (this one in install tool) says:
intl.default_locale de-CH
default_charset utf-8

Checking on console all characters looks ok.

Configuring [SYS][systemLocale] = en_US.UTF-8 to something else installed in system does not make any difference.

Result is allways something similar to this (note the ???) in error message:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1329647780: Object with identifier "1:/Jugend/?/???.txt" does not exist in storage | TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException thrown in file /var/www/webroot/ROOT/vendor/typo3/cms/typo3/sysext/core/Classes/Resource/ResourceFactory.php in line 565. Requested URL: https://devn.web.sac-cas.ch/typo3/index.php?route=%2Ffile%2Feditcontent&token=28ee451c0a0f5b64654d3c736c4643a2b236e64c&target=1%3A%2FJugend%2F%FC%2F%E4%F6%FC.txt&returnUrl=%2Ftypo3%2Findex.php%3FM%3Dfile_FilelistList%26moduleToken%3De2e018e00f1e91d34746687efed4571c998b56a7%26id%3D1%253A%252FJugend%252F%25C3%25BC%252F

Taking a simple script like this one: https://github.com/alexantr/filemanager
and using it on same server, has no problem with Umlauts or whatsoever.


Files

Pasted image at 2017_12_15 08_10 AM (1).png (10.9 KB) Pasted image at 2017_12_15 08_10 AM (1).png Error message in Backend Fernandez Daniel, 2017-12-15 13:33
Pasted image at 2017_12_15 08_10 AM.png (47.3 KB) Pasted image at 2017_12_15 08_10 AM.png Good Display in Backend Fernandez Daniel, 2017-12-15 13:33
Pasted image at 2017_12_15 08_13 AM.png (40.5 KB) Pasted image at 2017_12_15 08_13 AM.png Good Display on Console Fernandez Daniel, 2017-12-15 13:34
Pasted image at 2017_12_15 08_19 AM.png (18 KB) Pasted image at 2017_12_15 08_19 AM.png Use another simple php filemanager to doubleckek Fernandez Daniel, 2017-12-15 13:34
file.JPG (19.4 KB) file.JPG rename / delete file Fernandez Daniel, 2017-12-18 10:58
folder.JPG (12.3 KB) folder.JPG rename / delete folder Fernandez Daniel, 2017-12-18 10:58

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #27028: Linkhandler add a "="-Sign to all existing and new linksClosed2011-05-25

Actions
Actions #1

Updated by Fernandez Daniel almost 7 years ago

  • Target version set to next-patchlevel

Fernandez Daniel wrote:

Please take note that creating/uploading folders and files with
Umlauts works perfectly!

System should be configured the right way. What i checked:

System environment check it says:

- System locale is correct
- File names with UTF-8 characters can be used. ( [SYS][UTF8filesystem] = true )
- Your database uses utf-8. All good.

phpinfo and (this one in install tool) says:
intl.default_locale de-CH
default_charset utf-8

Checking on console all characters looks ok.

Configuring [SYS][systemLocale] = en_US.UTF-8 to something else installed in system does not make any difference.

Result is allways something similar to this (note the ???) in error message:

[...]

Taking a simple script like this one: https://github.com/alexantr/filemanager
and using it on same server, has no problem with Umlauts or whatsoever.

Actions #2

Updated by Frans Saris almost 7 years ago

Issue is that the incoming data with the special chars isn't recognized.

$this->target = utf8_encode($this->target);

Fixes this, need to check if we dan fix this in a general way.

Actions #3

Updated by Fernandez Daniel almost 7 years ago

Frans Saris wrote:

Issue is that the incoming data with the special chars isn't recognized.

[...]

Fixes this, need to check if we dan fix this in a general way.

Hello Frans! Thank you for checking. can you please tell me where to change that line? So i can check if this would fix the case.

Actions #4

Updated by Markus Klein almost 7 years ago

It works for me.

v8 from git, php 7.1

- created folder: "testtomove"
- renamed to: "testtoßmove"
- renamed to: "testtößmove"

Actions #5

Updated by Markus Klein almost 7 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (next-patchlevel)

Which browser do you use?

Actions #6

Updated by Markus Klein almost 7 years ago

Please provide a list of all PHP extensions you have installed. Thanks.

Actions #7

Updated by Markus Klein almost 7 years ago

  • Status changed from Needs Feedback to Accepted
  • Target version set to Candidate for patchlevel

This only happens when using the context menu to rename a file/folder. If the button in the list-view is used, there is no issue.

Actions #8

Updated by Markus Klein almost 7 years ago

The culprit is in typo3/sysext/backend/Resources/Public/JavaScript/backend.js:38

var output = escape(str);

https://www.w3schools.com/jsref/jsref_escape.asp says:

This function makes a string portable, so it can be transmitted across any network to any computer that supports ASCII characters.
Actions #9

Updated by Gerrit Code Review almost 7 years ago

  • Status changed from Accepted 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/55143

Actions #10

Updated by Gerrit Code Review almost 7 years ago

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/55144

Actions #11

Updated by Markus Klein almost 7 years ago

  • Related to Bug #27028: Linkhandler add a "="-Sign to all existing and new links added

Updated by Fernandez Daniel almost 7 years ago

Gerrit Code Review wrote:

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/55144

The Patch works for us, great, thanks

Actions #13

Updated by Markus Klein almost 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF