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
       Web browser: ---
   Mobile Platform: --- 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

Reply via email to