Page MenuHomePhabricator

rollback token not accessible on versions before query+tokens
Open, Needs TriagePublic

Description

I'm not sure if this is a bug or a feature request but there are two different ways to get the rollback token: Since the introduction of query+tokens, it's possible via there and this is already implemented. But before that the token was associated with the revision and APISite.get_tokens does not handle that and instead errors that the rollback token is not a valid token name.

But unlike the patrol token (T85727) it seems that the rollback token is not always the same, even different between two revisions of the same page. So it seems like that site.tokens['rollback'] is impossible on older wikis and instead the library/scripts should use the revisions' rollbacktoken which itself then could request the token via site.tokens['rollback'] on newer wikis.

Event Timeline

XZise created this task.Feb 27 2015, 12:06 PM
XZise raised the priority of this task from to Needs Triage.
XZise updated the task description. (Show Details)
XZise added a project: Pywikibot.
XZise added a subscriber: XZise.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptFeb 27 2015, 12:06 PM