Last modified: 2014-11-18 13:50:32 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 T74094, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72094 - mw.api.getToken should not use deprecated api.php?action=tokens
mw.api.getToken should not use deprecated api.php?action=tokens
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 70059
  Show dependency treegraph
 
Reported: 2014-10-15 20:45 UTC by Fomafix
Modified: 2014-11-18 13:50 UTC (History)
5 users (show)

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


Attachments

Description Fomafix 2014-10-15 20:45:34 UTC
mw.api.getToken uses api.php?action=tokens

api.php?action=tokens generates

 "warnings": {
     "tokens": {
         "*": "action=tokens has been deprecated. Please use action=query&meta=tokens instead."
     }
 }

api.php?action=query&meta=tokens has different token types. A simple change of the URL does not work because this changes the JavaScript API. mw.api.getToken has to implement a mapping from the current token types to the corresponding new token type.
Comment 1 Gerrit Notification Bot 2014-10-15 20:48:38 UTC
Change 166872 had a related patch set uploaded by Gerrit Patch Uploader:
mediawiki.api: Use action=query&meta=tokens instead of action=tokens

https://gerrit.wikimedia.org/r/166872

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


Navigation
Links