Last modified: 2014-02-23 16:49:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56194, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54194 - Exception from Translate/MessageCollection.php: Unknown filter
Exception from Translate/MessageCollection.php: Unknown filter
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Pratik Lahoti
https://translatewiki.net/w/api.php?a...
: easy
Depends on:
Blocks: 39480
  Show dependency treegraph
 
Reported: 2013-09-16 23:19 UTC by Niklas Laxström
Modified: 2014-02-23 16:49 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2013-09-16 23:19:32 UTC
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}
Comment 1 Siebrand Mazeland 2013-12-19 22:14:48 UTC
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?
Comment 2 Niklas Laxström 2013-12-20 16:38:05 UTC
This is not reproducible from the Translate ui. The api should die with dieUsage instead of throwing exception though.
Comment 3 Gerrit Notification Bot 2014-02-23 12:04:12 UTC
Change 114971 had a related patch set uploaded by BPositive:
Caught Unknown filter Exception

https://gerrit.wikimedia.org/r/114971
Comment 4 Gerrit Notification Bot 2014-02-23 15:59:22 UTC
Change 114971 merged by jenkins-bot:
Catch Unknown filter exception

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links