Page MenuHomePhabricator

Variables such as added_lines and removed_lines are missing for recent edit actions
Closed, DuplicatePublic


As a maintainer of edit filters, I expect variables such as added_lines to be present among the "Variables generated for this change" for every edit action, since the documentation provided at mw:Extension:AbuseFilter/Rules format#All variables does not mention any case where it is expected that the added_lines (or any other variable) will be missing for an edit action.

However, for some reason it is not present at w:pt:Special:AbuseFilter/examine/log/3736279 (while it was present in a log prior to that), so I guess some recent change to MediaWiki or AbuseFilter introduced a bug in the software. In fact, all the following variables are missing:

user_editcount, user_age, user_groups, article_recent_contributors, edit_diff, new_size, old_size, edit_delta, added_lines, removed_lines, added_links, all_links, old_links

The absence of these variables makes it difficult to investigate a possible false positive, and depending on the cause may also produce other false positives.

Event Timeline

He7d3r created this task.Feb 21 2018, 11:40 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 21 2018, 11:40 AM

Actually, I also noticed this issue, which is quite known. It seems to appear randomly, but it's there since quite a long time.