Bug #96960
closedPHP 8.1 warning in StoragePermissionsAspect causes 404 in tx_cms_showpic
100%
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
Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73597
Updated by Gerrit Code Review almost 3 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73597
Updated by Gerrit Code Review almost 3 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73597
Updated by Gerrit Code Review almost 3 years ago
Patch set 1 for branch 11.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/+/73544
Updated by Benjamin Franzke almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset eb27440186025f9e5425090ef59682cbdffc3307.