Project

General

Profile

Actions

Bug #87527

closed

Exception on creating file with disallowed extension

Added by Andreas Kießling almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2019-01-23
Due date:
% Done:

100%

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

Description

How to reproduce:
Create a text file in the file module with a disallowed extension, e.g. .shtml
The creation is denied, but the getFileEditRedirect throws an exception, because the param is not a file but already null

Argument 1 passed to TYPO3\CMS\Backend\Controller\File\FileController::getFileEditRedirect() must be an instance of TYPO3\CMS\Core\Resource\File, null given, called in /var/www/dist/typo3_src/typo3/sysext/backend/Classes/Controller/File/FileController.php on line 172 

TypeError thrown in file
/var/www/dist/typo3_src/typo3/sysext/backend/Classes/Controller/File/FileController.php in line 190.

Happened on TYPO3 version 8.7.24

Actions

Also available in: Atom PDF