Actions
Bug #96960
closedPHP 8.1 warning in StoragePermissionsAspect causes 404 in tx_cms_showpic
Start date:
2022-02-18
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
index.php?eID=tx_cms_showpic always returns 404 with PHP 8.1 because of a PHP Warning in StoragePermissionsAspect that is catched in ShowImageController and always converted to 404.
Inspecting the exception catched in https://github.com/TYPO3/typo3/blob/b843e0dac3b59097b3fdda04d22d362ec2de4be1/typo3/sysext/frontend/Classes/Controller/ShowImageController.php#L221-L223
reveals the following PHP warning:
PHP Warning: Undefined global variable $BE_USER in /var/www/html/typo3/sysext/core/Classes/Resource/Security/StoragePermissionsAspect.php line 46
Actions