Page MenuHomePhabricator

Fatal error on [[Special:AbuseFilter/test]] when an invalid title is given
Closed, ResolvedPublic

Description

Wikimedia-we-have-an-error page shown with the following content:

If you report this error to the Wikimedia System Administrators, please include the details below.

PHP fatal error in /usr/local/apache/common-local/php-1.22wmf19/extensions/AbuseFilter/Views/AbuseFilterViewTestBatch.php line 103:
Call to a member function getNamespace() on a non-object

How to reproduce:

  • Go to [[Special:AbuseFilter/test]]
  • Enter "File:Success_bash_of_%27Shootout_At_Wadala%27_at_Ekta%27s_house.jpg" as "Changes made to page".
  • Press "Test"

Version: master
Severity: normal

Details

Reference
bz55411

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:12 AM
bzimport added a project: AbuseFilter.
bzimport set Reference to bz55411.
bzimport added a subscriber: Unknown Object (MLST).

The actual bug appears to be unrelated to files and to URL escaping. Entering any invalid title in "Changes made to page" causes the error. Example: Some[page

Change 105424 had a related patch set uploaded by Jackmcbarn:
Prevent fatal error in Special:AbuseFilter/test

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

Change 105424 merged by jenkins-bot:
Prevent fatal error in Special:AbuseFilter/test

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