jayvdb created this task. jayvdb added a subscriber: jayvdb. jayvdb added a project: pywikibot-core.
TASK DESCRIPTION The patrol token is not being loaded correctly for earlier versions.
Since patrol was added in v1.14, until v1.16, the patrol token was the same as the edit token.
For 1.17-19, the patrol token must be obtained from the query list recentchanges.
https://en.wikipedia.org/w/api.php?action=query&list=recentchanges&r...
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb added a blocking task: T85725: token methods should use the list of tokens in paraminfo.
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb added a comment.
The dependency on https://phabricator.wikimedia.org/T85725 is very soft. This could be fixed before it , but we wouldnt have a reliable way to determine if the site has patrol enabled, which would be nice to have so that tests can easily be disabled.
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb added a comment.
Documentation for getting the token at https://www.mediawiki.org/wiki/API:Patrol
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb added a comment.
When logged out, rctoken=patrol includes a warning we can use to confirm the user doesnt have patrol rights (or, maybe, the site doesnt support patrol)
{ "warnings": { "recentchanges": { "*": "Action 'patrol' is not allowed for the current user" } }, ... }
http://wiki.kerbalspaceprogram.com/w/api.php?action=query&list=recentcha...
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
Ricordisamoa added a subscriber: Ricordisamoa.
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ricordisamoa Cc: Aklapper, jayvdb, Ricordisamoa, pywikipedia-bugs
XZise added a subscriber: XZise. XZise added a comment.
Interestingly on wikia it does also return the warning: http://www.wikia.com/api.php?action=query&list=recentchanges&rctoken...
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: Aklapper, jayvdb, Ricordisamoa, XZise, pywikipedia-bugs
Mpaa added a subscriber: Mpaa. Mpaa added a comment.
I also see it on wikisource, when I am (presumably) logged in, according to the pop-up I get. http://en.wikisource.org/w/api.php?action=query&list=recentchanges&r...
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, jayvdb, Ricordisamoa, XZise, Mpaa, pywikipedia-bugs
gerritbot added a project: Patch-For-Review. gerritbot added a comment.
Change 182690 had a related patch set uploaded (by Mpaa): Fetch patrol token for MW < 1.20
https://gerrit.wikimedia.org/r/182690
https://phabricator.wikimedia.org/tag/patch-for-review/
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: Aklapper, jayvdb, Ricordisamoa, XZise, Mpaa, pywikipedia-bugs
gerritbot added a comment.
Change 182690 merged by jenkins-bot: Fetch patrol token for MW < 1.20
https://gerrit.wikimedia.org/r/182690
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: Aklapper, jayvdb, Ricordisamoa, XZise, Mpaa, pywikipedia-bugs
Mpaa closed this task as "Resolved". Mpaa claimed this task.
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, jayvdb, Ricordisamoa, XZise, Mpaa, pywikipedia-bugs
Mpaa changed the title from "fetching the patrol token " to "Fetching the patrol token for earlier versions". Mpaa set Security to none.
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, jayvdb, Ricordisamoa, XZise, Mpaa, pywikipedia-bugs
Mpaa removed a project: Patch-For-Review.
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, jayvdb, Ricordisamoa, XZise, Mpaa, pywikipedia-bugs
jayvdb closed blocking task T85725: token methods should use the list of tokens in paraminfo as "Resolved".
TASK DETAIL https://phabricator.wikimedia.org/T85727
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa, jayvdb Cc: jayvdb, Ricordisamoa, Aklapper, XZise, Mpaa, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org