https://bugzilla.wikimedia.org/show_bug.cgi?id=61793
Bug ID: 61793
Summary: Special:ApiSandbox JavaScript error if API module
doesn't supply parameters
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ApiSandbox
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
https://gerrit.wikimedia.org/r/#/c/111255/1 is work in progress for a new API.
It works: api.php?action=query&prop=flow&titles=Talk:Main_Page returns
something. However, because this API module doesn't implement
getAllowedParams() and getParamDescription(), Special:ApiSandbox has errors if
you try to invoke it. If I choose action=query, prop=flow, "Loading..." spins
forever, the [Make Request] button remains disabled, and the browser console
shows the error
TypeError: this.params is undefined
http://localhost/wiki/extensions/ApiSandbox/resources/UiBuilder.js Line 62
The fix is for ApiSandbox's JS to handle an absent parameters list. It would be
nice if it warned "<modulename> does not supply allowed parameters".
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l