Project

General

Profile

Actions

Bug #95780

closed

PHP Warning: Undefined array key "filemounts"

Added by Christian Buelter over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-10-26
Due date:
% Done:

100%

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

Description

When I use the "reset password" link in the TYPO3 backend login form, I get the following error message:

PHP Warning: Undefined array key "filemounts" in [..]/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php line 1397

The user has no filemounts assigned.

The reset password function should work even if there are no file mounts set in the user or group record.

Before accessing

$this->groupData['filemounts']

in https://github.com/TYPO3/typo3/blob/3b7a862f15c35e1388cb5aef2b340de8994a449b/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php#L1397 it should be checked if the array key exists.

Actions

Also available in: Atom PDF