Project

General

Profile

Actions

Bug #84178

closed

Cannot create but upload file with "@" in name

Added by Mathias Brodala about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2018-03-08
Due date:
% Done:

100%

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

Description

In FAL there are at least two different ways to create files which apparently do not apply the same sanitation/validation rules to file names.

This can be verified easily in the Filelist module: if you try to upload a file called everything simply works.

But if you create a file called a ResourceDoesNotExistException is thrown:

#1329647780: Object with identifier "1:/foo@bar.txt" does not exist in storage

When opening the file list once more after this, an error flash message is shown which says File name "" was not allowed!.

This behavior can be traced back to these two code paths:

  • LocalDriver::addFile() calls LocalDriver::sanitizeFileName() which accepts (this is used e.g. for file uploads)
  • LocalDriver::createFile() calls AbstractDriver::isValidFilename() which denies (this is used for everything else)

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #84079: Error after creating file containing spacesClosed2018-02-28

Actions
Actions

Also available in: Atom PDF