Project

General

Profile

Actions

Bug #92601

closed

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

Added by Tymoteusz Motylewski about 4 years ago. Updated almost 4 years ago.

Status:
Closed
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.

Actions #1

Updated by Tymoteusz Motylewski about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Tymoteusz Motylewski about 4 years ago

  • Description updated (diff)
Actions #3

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

Actions #4

Updated by Tymoteusz Motylewski about 4 years ago

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

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

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

Actions #10

Updated by Tymoteusz Motylewski about 4 years ago

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

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF