Last modified: 2013-03-04 05:47:20 UTC
It's been responsible for a few (security) bugs, and I don't really see the point of it (even more so now we have action=tokens). I know we don't like breaking changes, which is fine, though, we can either deprecate this and say we'll remove it in X, or jfdi on security grounds See https://gerrit.wikimedia.org/r/4973 for the latest
I think we should get rid of that. It is very confusing <s>bug</s> feature...
I have submitted Gerrit change #6730 for review. This change marks gettoken parameter as deprecated.
The parameter deprecation should be documented in RELEASE-NOTES-1.21 (section 1.20). Please take this opportunity to fix a delay, per Reedy suggestion ("say we'll remove it in X", you haven't set this X yet).
Done, Gerrit change #40566. Do we maintain old versions RELEASE-NOTES files? I know FreeBSD project use RL errata for this purpose, e.g. http://www.freebsd.org/releases/9.0R/errata.html
A bit confused by the tokens implementation - there is a needsToken() which appears useless except to generate some help string, and yet many modules diligently override it. Also, in ApiMain.php / setupModule() has this line if ( $salt !== false && !$gettoken ) ... doesn't php give false when gettoken is ''? Lastly, the isset( $moduleParams['token'] ) - wouldn't that be always true even if the user didn't pass value (will be equal to null). Thx!
merged the HISTORY file - Gerrit change #40566 (even though was a bit reluctant - changing history is not the best way to do it). But its better to have it than not to mention it at all.
Closing as resolved. There is a relevant discussion in bug 45199 about restructuring tokens.