Bug #82962

FrontendUserAuthentication throws PHP error if this->user is not null or not array

Added by Thomas Hohn almost 2 years ago. Updated 5 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2017-11-10
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

It some of out TYPO3 installations we sometime see the following error when a login attempt has failed.

Core: Error handler (FE): PHP Warning: array_merge(): Argument #1 is not an array 
typo3_src/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php line 412 

So there might be conditions where $this->user can be something that's not an array or null

History

#1 Updated by Markus Klein almost 2 years ago

IMO $this->user is not null, but a string or something.
The ?? operator would use the false-part of the ternary if it was null.

#2 Updated by Thomas Hohn almost 2 years ago

  • Subject changed from FrontendUserAuthentication throws PHP error if this->user is null to FrontendUserAuthentication throws PHP error if this->user is not null or array
  • Description updated (diff)

#3 Updated by Thomas Hohn almost 2 years ago

Markus Klein wrote:

IMO $this->user is not null, but a string or something.
The ?? operator would use the false-part of the ternary if it was null.

You are right - my bad - will look into it...

#4 Updated by Thomas Hohn almost 2 years ago

  • Subject changed from FrontendUserAuthentication throws PHP error if this->user is not null or array to FrontendUserAuthentication throws PHP error if this->user is not null or not array

#5 Updated by Markus Klein almost 2 years ago

Which extensions are part of the game in your case?

#6 Updated by Łukasz Uznański over 1 year ago

How can I reproduce this bug?

#7 Updated by Benni Mack 5 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF