Project

General

Profile

Actions

Bug #99097

closed

Undefined array key in 11.5.19

Added by Tomas Havner almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-11-15
Due date:
% Done:

0%

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

Description

Hi,

When I upgrade to 11.5.19, PHP8, Debug-mode, I get several errors:

PHP Warning: Undefined array key "workspace_id" in /var/www/typo3_src-11.5.19/typo3/sysext/frontend/Classes/Middleware/BackendUserAuthenticator.php line 107

PHP Warning: Undefined array key "realName" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php line 1287

PHP Warning: Undefined array key "workspace_id" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php line 1780

PHP Warning: Undefined array key "workspace_id" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php line 1952

Kind regards

Tomas

Actions #1

Updated by Chris Müller almost 2 years ago

Does it also occur with another backend user?

Actions #2

Updated by Tomas Havner over 1 year ago

It affects pages that has a frontend-group access. Yes it affect other users.

Actions #3

Updated by Christian Kuhn over 1 year ago

  • Status changed from New to Needs Feedback

Weird. I'm unsure on how this could happen: Both realName and workspace_id are core fields of the be_users record and should always be set? Maybe I missed something, but BE_USER->user should usually be set to the user record, and for instance the BackendUserAuthenticator actually tests for BE_USER->user['uid'] being set before accessing workspace_id.

Could you provide a step-by-step setup on how to reproduce this?

Actions #4

Updated by Tomas Havner over 1 year ago

Hi,
The error has somehow disappeared. I apologize for the inconvience. This can be closed.

Tomas

Actions #5

Updated by Markus Klein over 1 year ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF