Page MenuHomePhabricator

Filters shouldn't `block autopromote` for anonymous users
Closed, ResolvedPublic

Description

See, eg, https://meta.wikimedia.org/w/index.php?title=Special:AbuseLog&wpSearchUser=86.179.176.115

Steps to reproduce (theoretical):
Editing anonymously, trigger a filter with the consequence of block autopromote

Expected result:
Since anonymous users cannot be autopromoted, no log entry of block autopromote is registered

Actual result:
Log entry is still registered

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Two quick notes:
1-It's not even trying to block autopromotion, it's just the log entry being wrong
2-The same issue affects 'degroup'

3-This should be handled by executeFilterActions, not takeConsequenceAction

Change 536587 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/extensions/AbuseFilter@master] Avoid processing blockautopromote and degroup for anons

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

Change 536587 abandoned by Daimona Eaytoy:
[mediawiki/extensions/AbuseFilter@master] Avoid processing blockautopromote and degroup for anons

Reason:

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