Bug #92601

FrontendUserRepository::fetchUserInformationByEmail() must be of the type array, bool returned

Added by Tymoteusz Motylewski about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Should have
Category:
felogin
Start date:
2020-10-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

#1

Updated by Tymoteusz Motylewski about 1 month ago

  • Description updated (diff)
#2

Updated by Tymoteusz Motylewski about 1 month ago

  • Description updated (diff)
#3

Updated by Gerrit Code Review about 1 month 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

#4

Updated by Tymoteusz Motylewski about 1 month ago

  • Category set to felogin
  • Assignee set to Tymoteusz Motylewski
  • Target version set to Candidate for patchlevel
#5

Updated by Gerrit Code Review about 1 month 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

#6

Updated by Gerrit Code Review about 1 month 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

#7

Updated by Gerrit Code Review about 1 month 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

#8

Updated by Gerrit Code Review about 1 month 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

#9

Updated by Gerrit Code Review about 1 month 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

#10

Updated by Tymoteusz Motylewski about 1 month ago

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

Also available in: Atom PDF