[BUGFIX] Context User Aspect must deal with empty fe_user 74/57674/3
authorBenni Mack <benni@typo3.org>
Tue, 24 Jul 2018 14:56:20 +0000 (16:56 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 25 Jul 2018 16:03:15 +0000 (18:03 +0200)
commit9ced33d346268244c632dc1afd84decd0d7b00fe
tree5463aa275d0f95a12d6a704ed02960bf30372574
parent18073caab25e3dd181b1f4a215377ab7d1b14858
[BUGFIX] Context User Aspect must deal with empty fe_user

TSFE->fe_user is set to '' by default, but UserAspect
expects "null".

Extensions like solr set up their own TSFE object which
is fine, however they still access gr_list which is OK,
because it is deprecated. However, a deprecation
message must be thrown, and NOT a strict typing warning.

UserAspect expects either "null" or object of type
AbstractUserAuthentication, but TSFE delivers '' by
default.

Modifying '' would not be an option as this would be
(slightly but still) breaking.

Resolves: #85632
Releases: master
Change-Id: I2dbd46bee1c497f413ede8a1e55334ef954cf723
Reviewed-on: https://review.typo3.org/57674
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php