Last modified: 2013-04-22 16:16:35 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 T47937, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45937 - ApiQueryAllMessages does not validate language code
ApiQueryAllMessages does not validate language code
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Brad Jorsch
http://translatewiki.net/w/api.php?ac...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-09 16:38 UTC by Niklas Laxström
Modified: 2013-04-22 16:16 UTC (History)
5 users (show)

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


Attachments

Description Niklas Laxström 2013-03-09 16:38:39 UTC
<?xml version="1.0"?>
<api>
  <error code="internal_api_error_MWException" info="Exception Caught: Invalid language code "<html>"" xml:space="preserve">

#0 /www/translatewiki.net/w/languages/Language.php(189): Language::newFromCode('<html>')
#1 /www/translatewiki.net/w/includes/api/ApiQueryAllMessages.php(45): Language::factory('<html>')
#2 /www/translatewiki.net/w/includes/api/ApiQuery.php(273): ApiQueryAllMessages->execute()
#3 /www/translatewiki.net/w/includes/api/ApiMain.php(840): 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(77): ApiMain->execute()
#7 {main}

</error>
</api>
Comment 1 Brad Jorsch 2013-03-12 15:00:17 UTC
Gerrit change #53362
Comment 2 Brad Jorsch 2013-03-13 15:11:04 UTC
Merged.

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


Navigation
Links