Bug #92601
closedFrontendUserRepository::fetchUserInformationByEmail() must be of the type array, bool returned
100%
Description
in TYPO3 v9.5 the method fetchUserInformationByEmail can in some cases return bool instead of declared array.
This result in error like:
TypeError: Uncaught exception 'TypeError' with message 'Return value of TYPO3\CMS\FrontendLogin\Domain\Repository\FrontendUserRepository::fetchUserInformationByEmail() must be of the type array, bool returned' in typo3/sysext/felogin/Classes/Domain/Repository/FrontendUserRepository.php:152
The problem is that the method returns directly what fetch() returns:
return $query->execute()->fetch(FetchMode::ASSOCIATIVE);
and fetch() can return false in some cases.
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/+/66174
Updated by Tymoteusz Motylewski about 4 years ago
- Category set to felogin
- Assignee set to Tymoteusz Motylewski
- Target version set to Candidate for patchlevel
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/+/66174
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/+/66174
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/+/66174
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/+/66131
Updated by Gerrit Code Review about 4 years ago
Patch set 2 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/+/66131
Updated by Tymoteusz Motylewski about 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 01e78eb0bfb17d9df3de3bccd049a7f96a807293.
Updated by Benni Mack almost 4 years ago
- Status changed from Resolved to Closed