Bug #87527
closedException on creating file with disallowed extension
100%
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
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
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
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a0bff080ef2d86c1d331eebd97105ac75535f3e5.
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
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
Applied in changeset 78ae96eb7cf65da82227e7fab06d98ce1e636aa4.