Bug #92489
closedCalling $contentObjectRenderer->getTreeList() in eID returns empty list
100%
Description
During Application's bootstrap, \TYPO3\CMS\Frontend\Http\Application::initializeContext()
does that:
GeneralUtility::makeInstance(Context::class, [ 'date' => new DateTimeAspect(new \DateTimeImmutable('@' . $GLOBALS['EXEC_TIME'])), 'visibility' => new VisibilityAspect(), 'workspace' => new WorkspaceAspect(0), 'backend.user' => new UserAspect(null), 'frontend.user' => new UserAspect(null, [0, -1]), ]);
this creates a default frontend.user
aspect without any AbstractAuthenticationUser. As we see in the UserAspect constructor, this is totally legit and creates a stdClass
object in such case:
/** * @param AbstractUserAuthentication|null $user * @param array|null $alternativeGroups */ public function __construct(AbstractUserAuthentication $user = null, array $alternativeGroups = null) { $this->user = $user ?? (object)['user' => []]; $this->groups = $alternativeGroups; }
Problem is that the method ->getGroupUids()
wrongly check for either a BackendUserAuthentication
or a FrontendUserAuthentication
for returning the associated groups, which can never occur in that context.
Due to this erroneous condition, the tree list is always empty!
Updated by Gerrit Code Review about 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/+/66053
Updated by Gerrit Code Review about 4 years ago
Patch set 2 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/+/66053
Updated by Gerrit Code Review about 4 years ago
Patch set 3 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/+/66053
Updated by Gerrit Code Review about 4 years ago
Patch set 4 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/+/66053
Updated by Gerrit Code Review about 4 years ago
Patch set 5 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/+/66053
Updated by Gerrit Code Review about 4 years ago
Patch set 6 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/+/66053
Updated by Markus Klein about 4 years ago
- Blocks Feature #92562: Resolve frontend user groups directly after fe_user initialization added
Updated by Gerrit Code Review about 4 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66126
Updated by Xavier Perseguers about 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6bc69695526cc1223f57b82905b7ae710ed24aba.
Updated by Benni Mack almost 4 years ago
- Status changed from Resolved to Closed