Bug #89763

Frontend dies if we are logged in as a be user with no page show rights.

Added by Ralf Zimmermann about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-11-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

This change https://github.com/TYPO3/TYPO3.CMS/commit/f1bf354cfc9dd973cc7c658be40c0dddab7b9b3d#diff-fa4ec26f18506b222bede82320fa0e30L108 removed the nullable typehint.

This results in a fatal

Argument 1 passed to TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization::setBackendUserAspect() must be an instance of TYPO3\CMS\Core\Authentication\BackendUserAuthentication, null given, called in /var/www/dsl/packages/TYPO3.CMS/typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php on line 102

in the following scenario:

  • Create a new backend user, no further configuration needed (at least, dont give the user a DB mount, so the user have no backend access to a page)
  • login as this user, or make a "su" for this user
  • load the frontend within a seperate browser tab

Related issues

Related to TYPO3 Core - Task #88800: Use dependency injection in PSR-15 middlewaresClosed2019-07-19

Actions
#1

Updated by Gerrit Code Review about 1 year 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/+/62424

#2

Updated by Mathias Brodala about 1 year ago

  • Is Regression set to Yes
#3

Updated by Mathias Brodala about 1 year ago

  • Related to Task #88800: Use dependency injection in PSR-15 middlewares added
#4

Updated by Ralf Zimmermann about 1 year ago

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

Updated by Benni Mack 11 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF