[BUGFIX] Allow getPagesTSconfig to be called without BE_USER 74/58174/2
authorBenni Mack <benni@typo3.org>
Tue, 4 Sep 2018 07:08:19 +0000 (09:08 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 4 Sep 2018 08:03:27 +0000 (10:03 +0200)
commit3260e09382068949e03cf4d6ca2a497275c2671e
treeb58c978cc67f07560a6a70c778a32fd03b70fe3e
parent28cca08615dc836090fea2a387a8a3459720ffa5
[BUGFIX] Allow getPagesTSconfig to be called without BE_USER

Due to refactorings lately in BackendUtility::getPagesTSconfig() with
which results in a fatal error when clearing page cache while persisting an
extbase object.

The patch adds a test without a Backend User, and encapsulates this
with a simple if() statement. However, this also shows that some
other areas that are touched are not fully notice-free / strict, which
are tackled as well.

Resolves: #85310
Releases: master
Change-Id: I0f1318d395451e704e1783e841d96583efe2a560
Reviewed-on: https://review.typo3.org/58174
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
typo3/sysext/core/Classes/Context/UserAspect.php