Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added projects: Wikidata, MediaWiki-extensions-PropertySuggester. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION As an API user, I want to be able to make mistakes without crashing anything server-side, in order to experiment with the API easily. **Problem:** If you call the PropertySuggester API with an invalid entity ID, e. g. by accident in the API sandbox, an uncaught exception is thrown **Example:** - https://www.wikidata.org/w/api.php?action=wbsgetsuggestions&format=json&entity=a { "error": { "code": "internal_api_error_InvalidArgumentException", "info": "$idSerialization must match /^Q[1-9]\\d{0,9}\\z/i", "errorclass": "InvalidArgumentException", "*": "See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes." }, "servedby": "mw1290" } **BDD** WHEN a `wbgetsuggestions` request with an invalid ID is made THEN a proper error is returned **Acceptance criteria:** - the exception is caught TASK DETAIL https://phabricator.wikimedia.org/T229319 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, Aklapper, darthmon_wmde, DannyS712, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Wikidata-bugs, aude, Sjoerddebruin, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
