Project

General

Profile

Actions

Bug #96960

closed

PHP 8.1 warning in StoragePermissionsAspect causes 404 in tx_cms_showpic

Added by Benjamin Franzke about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
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 #1

Updated by Gerrit Code Review about 2 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

Actions #2

Updated by Gerrit Code Review about 2 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

Actions #3

Updated by Gerrit Code Review about 2 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

Actions #4

Updated by Gerrit Code Review about 2 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

Actions #5

Updated by Benjamin Franzke about 2 years ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF