Project

General

Profile

Actions

Bug #89763

closed

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

Added by Ralf Zimmermann over 4 years ago. Updated over 4 years 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 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Gerrit Code Review over 4 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/+/62424

Actions #2

Updated by Mathias Brodala over 4 years ago

  • Is Regression set to Yes
Actions #3

Updated by Mathias Brodala over 4 years ago

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

Updated by Ralf Zimmermann over 4 years ago

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

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF