While retrieving the new token withing same session I get a different
rollback token, which doesn't work as well:

Thu Nov 6 14:03:19 2014  WARNING: API query (revisions): The rvtoken
parameter has been deprecated.
Thu Nov 6 14:03:18 2014  DEBUG[1]: Failed to deliver message to Nickpick12345
Thu Nov 6 14:03:18 2014  Did not revert Flag of the United States:
ERROR: Cannot rollback, token
833a4455b71819f6a4bad42677bb9c73545b7056+\ is not valid for some
reason (mediawiki bug), please try it once more
Thu Nov 6 14:03:18 2014  DEBUG[1]: Query failed: badtoken details: See
https://en.wikipedia.org/w/api.php for API usage
Thu Nov 6 14:03:18 2014  DEBUG[1]: Rolling back Flag of the United States

On Thu, Nov 6, 2014 at 1:59 PM, Petr Bena <[email protected]> wrote:
> Hey,
>
> I've seen a lot of changes in token system, however how it works is a
> mystery to me. So far I understood it as:
>
> You no longer get revert token per each edit using intoken but get
> some kind of global rollback token using action=query&meta=tokens
>
> Is this how it should work? If yes, there is a bug in mediawiki,
> because token returned by this api is randomly invalid. That means,
> sometimes it can be used and sometimes it return badtoken, which can
> be fixed only by either logging out and back in, or using the
> deprecated intoken parameter which returns working token (but is
> deprecated).
>
> If this is not how it should work, can someone explain to me how it
> works? Thanks
>
> here are some logs (read from bottom to top):
>
> Thu Nov 6 13:57:57 2014  DEBUG[1]: Failed to deliver message to 122.176.67.4
> Thu Nov 6 13:57:57 2014  Did not revert Tourism in Jammu and Kashmir:
> ERROR: Cannot rollback, token
> 0c59203d7b4d176f28540646c82e264a545b7039+\ is not valid for some
> reason (mediawiki bug), please try it once more
> Thu Nov 6 13:57:57 2014  DEBUG[1]: Query failed: badtoken details: See
> https://en.wikipedia.org/w/api.php for API usage
> Thu Nov 6 13:57:57 2014  DEBUG[1]: Rolling back Tourism in Jammu and Kashmir
> Thu Nov 6 13:57:57 2014  WARNING: API query (info): The intoken
> parameter has been deprecated.
> Thu Nov 6 13:57:57 2014  DEBUG[1]: Sending message to user 122.176.67.4
> Thu Nov 6 13:57:29 2014  DEBUG[1]: enwiki mediawiki 1.25wmf6
> Thu Nov 6 13:57:29 2014  DEBUG[2]: Token for enwiki rollback
> 0c59203d7b4d176f28540646c82e264a545b7039+\

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to