Page MenuHomePhabricator

Exception from Translate/MessageCollection.php: Unknown filter
Closed, ResolvedPublic

Description

2013-09-16 23:17:28 v22011026445052.yourvserver.net mediawiki-bw_: [30380891] /w/api.php?action=query&list=messagecollection&mcgroup=!recent&mcfilter=last-translator=1 Exception from line 359 of /www/translatewiki.net/w/extensions/Translate/MessageCollection.php: Unknown filter last-translator=1
#0 /www/translatewiki.net/w/extensions/Translate/api/ApiQueryMessageCollection.php(76): MessageCollection->filter('last-translator...', false, NULL)
#1 /www/translatewiki.net/w/extensions/Translate/api/ApiQueryMessageCollection.php(23): ApiQueryMessageCollection->run()
#2 /www/translatewiki.net/w/includes/api/ApiQuery.php(273): ApiQueryMessageCollection->execute()
#3 /www/translatewiki.net/w/includes/api/ApiMain.php(834): ApiQuery->execute()
#4 /www/translatewiki.net/w/includes/api/ApiMain.php(380): ApiMain->executeAction()
#5 /www/translatewiki.net/w/includes/api/ApiMain.php(351): ApiMain->executeActionWithErrorHandling()
#6 /www/translatewiki.net/w/api.php(73): ApiMain->execute()
#7 {main}


Version: master
Severity: minor
URL: https://translatewiki.net/w/api.php?action=query&list=messagecollection&mcgroup=!recent&mcfilter=last-translator=1

Details

Reference
bz54194

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:52 AM
bzimport set Reference to bz54194.

I understand that there is a way to make the API throw an exception. Some questions:

  1. How can this be reproduced from the UI?
  2. What is the observed result in the UI?
  3. What is the expected result in the UI?
  4. What should the raw API call return?

This is not reproducible from the Translate ui. The api should die with dieUsage instead of throwing exception though.

Change 114971 had a related patch set uploaded by BPositive:
Caught Unknown filter Exception

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

Change 114971 merged by jenkins-bot:
Catch Unknown filter exception

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