Project

General

Profile

Actions

Bug #99893

closed

+ in directory name is crashing the File > List module

Added by Xavier Perseguers almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2023-02-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

When you have a folder with a "+" in its name, the context menu does not pop up.

Reason: the AJAX call is passing the non-urlencoded name as parameter, thus replacing the "+" with a blank space.

How to reproduce

Create a directory with a "+" symbol (cannot be done from TYPO3, do it in terminal):

$ cd /path/to/fileadmin
$ mkdir two\+words

Go to Fileadmin in TYPO3 Backend and try to show the context menu on that directory, within the file tree:

Nothing happens!

Technical info

- AJAX: https://v10.typo3dev.loc/typo3/index.php?route=%2Fajax%2Fcontext-menu&token=6204a3c98a8d4faed6ddc60d361a99d0748d6def&table=sys_file&uid=1:/a-foo/two+words/&context=tree
- We read the vanilla argument uid=1:/a-foo/two+words/ instead of the URL encoded one, the one you get when you show a file within that directory using the corresponding action button:
- https://v10.typo3dev.loc/fileadmin/a-foo/two%2Bwords/foo.txt
- uid=1:/a-foo/two%2Bwords/


Files

folder.png (8 KB) folder.png Xavier Perseguers, 2023-02-09 09:42

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #93972: Files with "+" in filename can't be replacedNew2021-04-22

Actions
Actions

Also available in: Atom PDF