Page MenuHomePhabricator

Update Special:CheckUser to handle 'NULL' as the value of cupe_actor in some of the rows of cu_private_event
Closed, ResolvedPublic1 Estimated Story Points

Description

Special:CheckUser needs to be updated to be able to handle NULL as the value of cupe_actor in some cu_private_event rows. This allows the interface to be able to display private events (such as failed login attempts) on a wiki with temporary accounts enabled which are performed by IP addresses.

Acceptance criteria
  • The Special:CheckUser pagers and interfaces should be updated to parse NULL as the value of cupe_actor through the use of a LEFT JOIN.

QA Results - Local

Event Timeline

Change 1010869 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Support NULL values of cupe_actor in Special:CheckUser

https://gerrit.wikimedia.org/r/1010869

Change 1010869 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Support NULL values of cupe_actor in Special:CheckUser

https://gerrit.wikimedia.org/r/1010869

Suggested QA steps intended for a local wiki:

  1. Install CheckUser, if required
  2. Enable temporary accounts, if required
  3. Add $wgCheckUserLogLogins = true; to your LocalSettings.php if not already defined there
  4. Make a failed login attempt to an account (i.e. use a wrong username or password)
  5. Verify that no exception is thrown and instead an message is displayed indicating that the wrong password/username was used
  6. Open Special:CheckUser and run a Get actions check on the IP address you used to make the failed login attempt
  7. Verify that the failed login appears in the results list as the first item displayed.

You can repeat this with step 4 and 5 replaced with using the Special:PasswordReset form and verifying that form successfully submits. For step 7 you would expect to find the the password reset email event.

@Dreamy_Jazz Both failed login and password emails sent both show up in Special:CheckUser as seen in the screenshots. This will be moved to Done. Thanks for all your work and steps!

Status: ✅PASS
Environment: Local: 1.42.0-alpha (24d0d95)10:06, 19 March 2024
OS: macOS Sonoma 14.4
Browser: Chrome 122, Firefox 123, Safari 17.3
Skins. Vector 2022, Vector 2010, Minerva, Monobook, Timeless
Device: MBA M2
Emulated Device:: n/a
Test Links:
Special:CheckUser
Special:PasswordReset

✅AC1: https://phabricator.wikimedia.org/T359965

Failed loginSpecial:CheckUser-Failed LoginPasswordResetMailHogSpecial:CheckUser-PW reset email
2024-03-19_12-16-30.png (752×778 px, 99 KB)
2024-03-19_12-19-55.png (1×1 px, 278 KB)
2024-03-19_12-24-10.png (517×2 px, 136 KB)
2024-03-19_12-24-24.png (669×1 px, 109 KB)
2024-03-19_12-26-02.png (1×2 px, 316 KB)