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 #1

Updated by Gerrit Code Review over 5 years ago

  • Status changed from New to Under Review

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/c/Packages/TYPO3.CMS/+/59879

Actions #2

Updated by Gerrit Code Review over 5 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59924

Actions #3

Updated by Anonymous over 5 years ago

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

Updated by Gerrit Code Review over 5 years ago

  • Status changed from Resolved 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/c/Packages/TYPO3.CMS/+/59926

Actions #5

Updated by Anonymous over 5 years ago

  • Status changed from Under Review to Resolved
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF