Latest MW return 2 types of token, missing original 'token'
Closed this issue · 0 comments
GoogleCodeExporter commented
The latest version of MW on Wikipedia returns 2 types of token: 'edittoken' and
'watchtoken'
and the original 'token' is now missed.
This affect 'getPageInfo' function that can't retrieve the 'token' value.
Consequently, 'checkRights' and 'edit' functions throw NullPointerException
because pageinfo.get("token") finds nothing...
I suggest to retrieve both 'token' and 'edittoken' for safe running.
Original issue reported on code.google.com by octahedr...@gmail.com
on 23 Jan 2014 at 3:41