[Pywikipedia-bugs] [Maniphest] [Edited] T137805: API action=login is deprecated

2016-08-05 Thread jayvdb
jayvdb edited the task description. (Show Details)
EDIT DETAILSLogin via action="" was deprecated in {54d58ef5}, which landed Jan 11 2016

```...TASK DETAILhttps://phabricator.wikimedia.org/T137805EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: jayvdbCc: Aschroet, MarcoAurelio, Jogo.obb, valhallasw, jayvdb, Aklapper, Zppix, Xqt, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread jayvdb
jayvdb added a parent task: T137805: API action="" is deprecated.
TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: jayvdbCc: zhuyifei1999, Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T137805: API action=login is deprecated

2016-08-05 Thread jayvdb
jayvdb added a subtask: T142155: Bot can't login. keyError in GetCookie.
TASK DETAILhttps://phabricator.wikimedia.org/T137805EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: jayvdbCc: Aschroet, MarcoAurelio, Jogo.obb, valhallasw, jayvdb, Aklapper, Zppix, Xqt, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Unassigned] T112006: Link.langlinkUnsafe does not work on Beta-Cluster wikis

2016-08-05 Thread jayvdb
jayvdb removed XZise as the assignee of this task.jayvdb added a project: TestMe.Herald added a subscriber: TerraCodes.
TASK DETAILhttps://phabricator.wikimedia.org/T112006EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: jayvdbCc: TerraCodes, demon, greg, Luke081515, gerritbot, Krenair, jayvdb, Aklapper, pywikibot-bugs-list, XZise, Mdupont, hashar, mmodell___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142269: login.py should show a sensible error message when some tries to use it with OAuth

2016-08-05 Thread jayvdb
jayvdb added a comment.
The current error message is: {P3657}

Something wrong with this paste?  https://phabricator.wikimedia.org/P3657 says access denied.TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: jayvdbCc: jayvdb, Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread jayvdb
jayvdb merged a task: T142192: Bot can't login. keyError in GetCookie: some modifications that make it work?.
TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: jayvdbCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment.
Hah, I found this gem:

def storecookiedata(self, data):
"""Ignore data; cookies are set by threadedhttp module."""
http.cookie_jar.save()

So yes, that chunk of code isn't used and can be safely deleted. I'll put up a patch later tonight if no one beats me to it.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LegoktmCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142269: login.py should show a sensible error message when some tries to use it with OAuth

2016-08-05 Thread Tgr
Tgr added a comment.
Hm, I can't reproduce with current master, I just get Logged in on  as .

@MarcoAurelio can you verify that you got the error with the latest version of Pywikibot?TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment.

In T142155#2529761, @Tgr wrote:
Or do most people use master?


Pretty much, though ironically we've been trying to get people to use the proper releases so we can make breaking changes in master.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LegoktmCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment.

In T142155#2529722, @Legoktm wrote:
Using OAuth with Pywikibot is documented at https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth, maybe we need to publicize that more?


Yes but it is not user-friendly (or rather the OAuth form is not user-friendly, and the doc sends people off to fill it).

Also apparently it's not in 2.0 and there is no more recent release :( Or do most people use master?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment.
Using OAuth with Pywikibot is documented at https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth, maybe we need to publicize that more?

Hack to make Pywikibot work on Wikimedia wikis once cookieprefix is dropped:

diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 62ec818..3980c9a 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -3030,7 +3030,7 @@ class LoginManager(login.LoginManager):
 if u"login" not in login_result:
 raise RuntimeError("API login response does not have 'login' key.")
 if login_result['login']['result'] == "Success":
-prefix = login_result['login']['cookieprefix']
+prefix = login_result['login'].get('cookieprefix', self.site.dbName())
 cookies = []
 for key in ('Token', 'UserID', 'UserName'):
 cookies.append("%s%s=%s"

Haven't tested that, nor dropping that code entirely. I wouldn't be surprised if this code was entirely obsolete and not necessary.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LegoktmCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment.
@Betacommand said something about the bot still working if you just delete the lines which deal with the prefix. Which seems plausible as it uses a cookie jar anyway. I'm not sure how to test that now though, there does not seem to be a wiki family for labs.

In any case, getting users to update should take a few days at least and it's not nice to break all bots for the weekend. (Well, the 16% of bots which are unlucky enough that their session would expire this week, but still.)

I'll make a step-by--step tutorial about using OAuth and we can send that and/or a call to update out with Tech News. (I suppose compat users will be screwed, or maybe that already happened in January?)TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread ReleaseTaggerBot
ReleaseTaggerBot added a project: WMF-deploy-2016-08-02_(1.28.0-wmf.13).
TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ReleaseTaggerBotCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment.
Eh. I don't think we should have reverted for now...we could have just fixed pywikibot pretty quickly by hardcoding the cookie prefix.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LegoktmCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Created] T142269: login.py should show a sensible error message when some tries to use it with OAuth

2016-08-05 Thread Tgr
Tgr created this task.Tgr added projects: Pywikibot-login.py, Pywikibot-OAuth.Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTIONThe current error message is: {P3657}
It's not impossible to figure out from that that you don't need to log in explicitly when using OAuth, but it's not exactly user-friendly either. It should just say something like "Skipping login, you are using OAuth so you are always logged in."

Two UX complications worth considering:


the user might have an OAuth token for the wiki which is invalid. Trying to use the login API would probably still fail in that case, but in uglier ways.
the user might have an OAuth token which is valid for the wiki on which they perform the login, but not for all wikis on which the session saved via login.py would be valid (if it's a CentralAuth session or something similar).
TASK DETAILhttps://phabricator.wikimedia.org/T142269EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Aklapper, pywikibot-bugs-list, MarcoAurelio, Tgr___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment.
Reverted in 1.28.0-wmf.13 (meaning it will last until Tuesday). Is anyone planning to fix PWB and contact users about updating (or using OAuth)?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Stashbot
Stashbot added a comment.
Mentioned in SAL [2016-08-05T23:39:43Z]  Synchronized php-1.28.0-wmf.13/includes/api/ApiLogin.php: temporarily re-add dropped API feature to unbreak Pywikibot T142155 (duration: 00m 48s)TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: StashbotCc: Stashbot, gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread gerritbot
gerritbot added a comment.
Change 303320 merged by jenkins-bot:
Revert "API: Remove deprecated response values from action="">

https://gerrit.wikimedia.org/r/303320TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread gerritbot
gerritbot added a comment.
Change 303320 had a related patch set uploaded (by Gergő Tisza):
Revert "API: Remove deprecated response values from action="">

https://gerrit.wikimedia.org/r/303320TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread JJMC89
JJMC89 added a comment.
PWB can skip login if there is still a valid session. My bot has edited at enwiki since this task was opened. The API warning did show up in the logs the last time it did login. From my logs, it seems like my bot has to login every ~30 days.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JJMC89Cc: gerritbot, DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread DrTrigon
DrTrigon added a comment.
Does definetly not work on commons - I can verify this. Stumbled into this issue while testing for file-metadata. Given there is a Conpherence in India and we are in final phase of GSoC currently (beta testing etc.) it is kind of a must have of a working pywikibot.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DrTrigonCc: DrTrigon, Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment.
I can reproduce on Commons (and would be surprised if the API there behaved differently). Maybe the user already had a Commons session and PWB is clever enough to skip the login if there is a valid session?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Betacommand
Betacommand added a comment.
I saw a note that commons was working which is why I askedTASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BetacommandCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment.

In T142155#2529513, @Betacommand wrote:
Which wikis are currently affected?


Presumably all Wikimedia wikis since the change went out with this week's train.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Betacommand
Betacommand added a comment.
Which wikis are currently affected?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BetacommandCc: Betacommand, Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment.
I don't think bot passwords would help with this, they use the same API. Using OAuth is a possible workaround (and is in general the recommended login method for bots; Pywikibot supports it although I have no idea how well tested the feature is).TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Lokal_Profil
Lokal_Profil added a comment.
@Multichill: Does using Special:BotPasswords solve the problem for you?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: Lokal_Profil, Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Tgr
Tgr added a comment.
Anomie is on vacation (and in general pwb-announce is not a good place to report assumed API bugs).

Deprecation of cookieprefix was announced in December (along with a general discouragement of the login API, unless used with bot passwords; see this and this email). Removal was announced a week in advance.

Does this affect the most recent PWB version? Is anyone working on the issue?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: TgrCc: Tgr, Udo_T, Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Multichill
Multichill added a comment.

In T142155#2529359, @MarcoAurelio wrote:
Not a tech so pardon my ignorance, but I feel it'd be easier to solve this from the pywikibot side rather than on the mediawiki side? In other words, this is not that simple than to submit a revert-patch for @Anomie's change and have it merged on gerrit, it needs to be backported or something, right?


Having everyone update every once in a while is not problem, forcing every bot operator out there to update *now* to the the latest version is not cool.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread MarcoAurelio
MarcoAurelio added a comment.
Not a tech so pardon my ignorance, but I feel it'd be easier to solve this from the pywikibot side rather than on the mediawiki side? In other words, is not that simple to submit a revert-patch for @Anomie's change and have it merged on gerrit, it needs to be backported or something, right?TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MarcoAurelioCc: Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Legoktm
Legoktm added a comment.
...ugh. We (Pywikibot) had 7+ months to fix this, and we didn't.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: LegoktmCc: Legoktm, JJMC89, Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Multichill
Multichill added a comment.
Emailed the announce list, see https://lists.wikimedia.org/pipermail/pywikibot-announce/2016-August/10.htmlTASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Merged] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Danny_B
Danny_B added subscribers: Yamaha5, Pywikibot-Announce.Danny_B merged a task: T142250: pywikibot login fatal error.
TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Danny_BCc: Pywikibot-Announce, Yamaha5, jayvdb, Ladsgroup, Xqt, valhallasw, Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T142250: pywikibot login fatal error

2016-08-05 Thread Danny_B
Danny_B closed this task as a duplicate of T142155: Bot can't login. keyError in GetCookie.
TASK DETAILhttps://phabricator.wikimedia.org/T142250EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Danny_BCc: pywikibot-bugs-list, Pywikibot-Announce, Aklapper, Yamaha5, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T142250: pywikibot login fatal error

2016-08-05 Thread Danny_B
Danny_B added a project: Pywikibot-core.Herald added a subscriber: pywikibot-bugs-list.
TASK DETAILhttps://phabricator.wikimedia.org/T142250EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Danny_BCc: pywikibot-bugs-list, Pywikibot-Announce, Aklapper, Yamaha5, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Multichill
Multichill added subscribers: Anomie, Multichill.Multichill added a comment.
@Anomie could you undo your change? It broke all bots.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MultichillCc: Multichill, Anomie, CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142021: Error mysqlquery

2016-08-05 Thread Mpaa
Mpaa added a comment.

In T142021#2525752, @Vladis13 wrote:
Also, "python scripts\listpages.py" does not write a list of pages in file. 
 And, redirect output in file on Windows does not work (like "python scripts\listpages.py -transcludes:"template_name"> list.txt" or "... | more > list.txt"). It gives error of python, as if ">" is argument of its call.




For the redirection  the is already an open bug (cannot recall which one).
Anyhow,

mpaa@tools-bastion-03:~/core$ python scripts/listpages.py -mysqlquery:"SELECT page_namespace, page_title FROM page WHERE page_namespace = 0 LIMIT 15" > file.txt
15 page(s) found
mpaa@tools-bastion-03:~/core$ cat file.txt 
   1 "?"
   2 "A Bruised Reed Shall He Not Break"
  ...
  15 "Birds of Prey" MarchTASK DETAILhttps://phabricator.wikimedia.org/T142021EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MpaaCc: Mpaa, valhallasw, Aklapper, pywikibot-bugs-list, Vladis13, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142021: Error mysqlquery

2016-08-05 Thread Mpaa
Mpaa added a comment.
You got your query wrong.

mpaa@tools-bastion-03:~/core$ python scripts/listpages.py -mysqlquery:"SELECT page_namespace, page_title FROM page WHERE page_namespace = 0 LIMIT 10"
   1 "?"
   2 "A Bruised Reed Shall He Not Break"
   3 "A Family Sketch"
   4 "A Little While"
   5 "Abstinence sows sand all over"
   6 "Amarillis I Did Woo"
   7 "And the sins of the fathers shall be"
   8 "And with what body do they come?" --
   9 "And with what body do they come?" —
  10 "Arcturus" is his other name --
10 page(s) foundTASK DETAILhttps://phabricator.wikimedia.org/T142021EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MpaaCc: Mpaa, valhallasw, Aklapper, pywikibot-bugs-list, Vladis13, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread CodeCat
CodeCat added a comment.
Can confirm, having the same problem. I upgraded it to "Unbreak now" because the bot has basically become unusable for everyone as far as I can tell.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: CodeCatCc: CodeCat, TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Raised Priority] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread CodeCat
CodeCat raised the priority of this task from "High" to "Unbreak Now!".Herald added subscribers: Luke081515, TerraCodes.
TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: CodeCatCc: TerraCodes, Luke081515, He7d3r, Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Basilicofresco
Basilicofresco added a comment.
This morning I had the same problem. I'm running Python 3.5.1 under Win7. Interestingly logging on Commons is working flawlessly.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BasilicofrescoCc: Basilicofresco, Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Triaged] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Basilicofresco
Basilicofresco triaged this task as "High" priority.
TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BasilicofrescoCc: Jagwar, MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Block] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Joutbis
Joutbis created subtask T142192: Some modifications that make it work?.
TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JoutbisCc: MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread MarcoAurelio
MarcoAurelio added a comment.
Happening to me as well. My bot can edit, but if I want to use scripts such as delete.py, login with my sysop account fails.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MarcoAurelioCc: MarcoAurelio, Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Edited] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Joutbis
Joutbis edited the task description. (Show Details)
EDIT DETAILS...In case you need to know, site is ca.wikipedia, where my bot is registered.

I have edited api.py, to have it print login_result. It's

```
{u'login': {u'lguserid': 7, u'result': u'Success', u'lgusername': u'xxx'}, u'warnings': {u'login': {u'*': u'Main-account login via action="" is deprecated and may stop working without warning. To continue login with action="" see [[Special:BotPasswords]]. To safely continue using main-account login, see action="" />
```
So, where my bot is registeredno cookie.TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JoutbisCc: Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T142155: Bot can't login. keyError in GetCookie

2016-08-05 Thread Dalba
Dalba added a comment.
This seems to be caused by the removal of cookieprefix from the api response in MW v1.28 :

23e5cdb5034dca5bbdfc2ac9c111c5fac20ff579 (T121527).TASK DETAILhttps://phabricator.wikimedia.org/T142155EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: Dalba, Aklapper, Joutbis, pywikibot-bugs-list, Mdupont, jayvdb___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs