Page MenuHomePhorge

Fix PHP 8.1 substr(null) in People > Activity Logs
ClosedPublic

Authored by Sten on Jul 17 2023, 12:05.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 26, 00:08
Unknown Object (File)
Tue, Jul 23, 11:18
Unknown Object (File)
Mon, Jul 22, 00:48
Unknown Object (File)
Sun, Jul 21, 16:15
Unknown Object (File)
Wed, Jul 10, 07:51
Unknown Object (File)
Tue, Jul 9, 11:23
Unknown Object (File)
Jun 26 2024, 10:36
Unknown Object (File)
Jun 22 2024, 10:58

Details

Summary

When someone tries to log on with invalid credentials, a record is inserted in the phabricator_user.user_log table with action = login-fail.
The session value of this record is set to null in this case.

When you open the People → Activity Logs screen, you will see an exception because of this.

Fixes T15555

Test Plan

Go to https://my.phorge.site/people/logs/ after a login failure and a login success.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable