Issue Bug Closed

#95780PHP Warning: Undefined array key "filemounts"

Christian Buelter 10/26/21, 11:31 updated 10/04/22, 14:13

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.

Reviews 1

History 45

  1. Christian Buelter changed description 10/26/21, 11:32

  2. Christian Buelter changed description 10/26/21, 11:35

  3. Gerrit Code Review pushed patch set 1 for master to change 71993 status New Under Review 10/27/21, 07:43

  4. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 10/27/21, 19:05

    Applied in changeset commit:a11869c03f95251b0fdf14353254c76dc5d19066.

  5. Benni Mack changed status Resolved Closed 10/04/22, 14:13