aude created this task. aude added a subscriber: aude. aude added projects: Wikidata, MediaWiki-extensions-WikibaseRepository, Wikimedia-log-errors. Herald added a subscriber: Aklapper.
TASK DESCRIPTION when entering an invalid language code, I get an internal error / uncaught exception: ``` /wiki/Special:ItemDisambiguation?language=%3Cgdklsjglsk&label=%3Cjgkdsjgsl MWException from line 61 of /srv/mediawiki/php-1.27.0-wmf.6/extensions/Wikidata/extensions/Wikibase/lib/includes/LanguageWithConversion.php: Wikibase\LanguageWithConversion::validateLanguageCode: invalid language code <gdklsjglsk [Exception MWException] (/srv/mediawiki/php-1.27.0-wmf.6/extensions/Wikidata/extensions/Wikibase/lib/includes/LanguageWithConversion.php:61) Wikibase\LanguageWithConversion::validateLanguageCode: invalid language code <gdklsjglsk #0 /srv/mediawiki/php-1.27.0-wmf.6/extensions/Wikidata/extensions/Wikibase/lib/includes/LanguageFallbackChainFactory.php(105): Wikibase\LanguageWithConversion::validateLanguageCode(string) #1 /srv/mediawiki/php-1.27.0-wmf.6/extensions/Wikidata/extensions/Wikibase/lib/includes/Interactors/TermIndexSearchInteractor.php(308): Wikibase\LanguageFallbackChainFactory->newFromLanguageCode(string) #2 /srv/mediawiki/php-1.27.0-wmf.6/extensions/Wikidata/extensions/Wikibase/lib/includes/Interactors/TermIndexSearchInteractor.php(210): Wikibase\Lib\Interactors\TermIndexSearchInteractor->addFallbackLanguageCodes(array) #3 /srv/mediawiki/php-1.27.0-wmf.6/extensions/Wikidata/extensions/Wikibase/lib/includes/Interactors/TermIndexSearchInteractor.php(167): Wikibase\Lib\Interactors\TermIndexSearchInteractor->getMatchingTermIndexEntries(string, string, string, array) #4 /srv/mediawiki/php-1.27.0-wmf.6/extensions/Wikidata/extensions/Wikibase/repo/includes/specials/SpecialItemDisambiguation.php(136): Wikibase\Lib\Interactors\TermIndexSearchInteractor->searchForEntities(string, string, string, array) #5 /srv/mediawiki/php-1.27.0-wmf.6/includes/specialpage/SpecialPage.php(384): Wikibase\Repo\Specials\SpecialItemDisambiguation->execute(NULL) #6 /srv/mediawiki/php-1.27.0-wmf.6/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL) #7 /srv/mediawiki/php-1.27.0-wmf.6/includes/MediaWiki.php(280): SpecialPageFactory::executePath(Title, RequestContext) #8 /srv/mediawiki/php-1.27.0-wmf.6/includes/MediaWiki.php(704): MediaWiki->performRequest() #9 /srv/mediawiki/php-1.27.0-wmf.6/includes/MediaWiki.php(506): MediaWiki->main() #10 /srv/mediawiki/php-1.27.0-wmf.6/index.php(41): MediaWiki->run() #11 /srv/mediawiki/w/index.php(3): include(string) #12 {main} ``` TASK DETAIL https://phabricator.wikimedia.org/T118556 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: aude Cc: aude, Aklapper, Luke081515, Wikidata-bugs, Mbch331, Jay8g, Krenair, greg _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs