Project

General

Profile

Actions

Bug #95780

closed

PHP Warning: Undefined array key "filemounts"

Added by Christian Buelter about 3 years ago. Updated about 2 years 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 #1

Updated by Christian Buelter about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Christian Buelter about 3 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review about 3 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/+/71993

Actions #4

Updated by Georg Ringer about 3 years ago

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

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF