Page MenuHomePhabricator

Special:Log is missing actions of type "globalauth" from the "Maintenance script" user
Closed, ResolvedPublic

Description

https://meta.wikimedia.org/wiki/Special:Log/Maintenance_script has performed operations under global accounts, such as global account deletions. However if one goes to the globalauth for that account, you'll find no entries there. I've noticed this while reviewing an oversighted account, so excuse me if I don't post a link to the user in question.

Event Timeline

Change 304620 had a related patch set uploaded (by Glaisher):
LogPager: Use Title::getDBkey for non-existent users' username in query condition

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

Why was the comment removed? Is it not valid? Perhaps you are correct because I closed this based on an assumption, not after confirming. :)

We will discover once your patch is deployed I supose. However it's just
the globalauth log at meta which is unreachable for Maintence script; the
others work fine IIRC.

This problem is happen because the Maintenance script exists as user but all the log entries in the logging table have log_user = 0, so the query does not find anything for the user id.

The log entries are there: https://meta.wikimedia.org/w/index.php?title=Special:Log&dir=prev&offset=20150415134331&type=globalauth&user=

The log_user = 0 maybe no longer true, see T181731

The "Maintenance script" user is an exception to the cleanup in T181731, since the username is reserved it returns false from User::isUsableName() and that cleanup script didn't touch it. But when T167246 happens it'll assign all the edits to the existing account.

Krinkle renamed this task from Operations under global accounts performed by Maintenance script can't be retrieved from Special:Log to Special:Log is missing actions of type "globalauth" from the "Maintenance script" user .Jun 23 2019, 11:56 PM
DannyS712 added subscribers: Anomie, DannyS712.

The "Maintenance script" user is an exception to the cleanup in T181731, since the username is reserved it returns false from User::isUsableName() and that cleanup script didn't touch it. But when T167246 happens it'll assign all the edits to the existing account.

This appears to have occurred, https://meta.wikimedia.org/w/index.php?title=Special%3ALog&type=globalauth&user=Maintenance+script is populated - can this be resolved?

taavi subscribed.

Can't reproduce anymore, closing.