Page MenuHomePhabricator

FilterNotFoundException from line 111 of /srv/mediawiki/php-1.36.0-wmf.26/extensions/AbuseFilter/includes/FilterLookup.php: Filter XYZ does not exist
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error message
MediaWiki\Extension\AbuseFilter\Filter\FilterNotFoundException from line 111 of /srv/mediawiki/php-1.36.0-wmf.26/extensions/AbuseFilter/includes/FilterLookup.php: Filter 99999 does not exist
Stack Trace
#0 /srv/mediawiki/php-1.36.0-wmf.26/extensions/AbuseFilter/includes/Api/QueryAbuseLog.php(117): MediaWiki\Extension\AbuseFilter\FilterLookup->getFilter(integer, boolean)
#1 /srv/mediawiki/php-1.36.0-wmf.26/includes/api/ApiQuery.php(269): MediaWiki\Extension\AbuseFilter\Api\QueryAbuseLog->execute()
#2 /srv/mediawiki/php-1.36.0-wmf.26/includes/api/ApiMain.php(1612): ApiQuery->execute()
#3 /srv/mediawiki/php-1.36.0-wmf.26/includes/api/ApiMain.php(592): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.36.0-wmf.26/includes/api/ApiMain.php(563): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.36.0-wmf.26/api.php(90): ApiMain->execute()
#6 /srv/mediawiki/php-1.36.0-wmf.26/api.php(45): wfApiMain()
#7 /srv/mediawiki/w/api.php(3): require(string)
#8 {main}
Impact
Notes

Reproducible at the given URL if you don't have the rights to see private AbuseFilter logs.

Details

Request ID
YAle2gpAIDUAALbBlgAAAACT
Request URL
en.wikipedia.org/w/api.php?action=query&format=json&list=abuselog&aflfilter=99999

Event Timeline

Daimona created this task.Jan 21 2021, 12:59 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 21 2021, 12:59 PM
Daimona claimed this task.Jan 21 2021, 1:00 PM
Daimona updated the task description. (Show Details)

Change 657567 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/extensions/AbuseFilter@master] Catch FilterNotFoundException in ApiQueryAbuseLog

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

Change 657567 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] Catch FilterNotFoundException in ApiQueryAbuseLog

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

Daimona closed this task as Resolved.Jan 22 2021, 11:25 AM
Daimona removed a project: Patch-For-Review.