Last modified: 2013-03-04 05:47:20 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 T37993, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35993 - gettoken should go die in a fire
gettoken should go die in a fire
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 45199
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-15 18:13 UTC by Sam Reed (reedy)
Modified: 2013-03-04 05:47 UTC (History)
7 users (show)

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


Attachments

Description Sam Reed (reedy) 2012-04-15 18:13:02 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
Comment 1 Beau 2012-04-25 16:57:26 UTC
I think we should get rid of that. It is very confusing <s>bug</s> feature...
Comment 2 Beau 2012-05-06 14:50:41 UTC
I have submitted Gerrit change #6730 for review. This change marks gettoken parameter as deprecated.
Comment 3 Dereckson 2012-12-26 17:09:57 UTC
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).
Comment 4 Dereckson 2012-12-26 17:21:30 UTC
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
Comment 5 Yuri Astrakhan 2013-01-05 12:01:45 UTC
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!
Comment 6 Yuri Astrakhan 2013-02-20 15:47:37 UTC
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.
Comment 7 Yuri Astrakhan 2013-03-04 05:47:20 UTC
Closing as resolved. There is a relevant discussion in bug 45199 about restructuring tokens.

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


Navigation
Links