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:
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,
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,
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,
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:
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,
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
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
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
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
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
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,
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,
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:
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
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
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
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
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
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
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
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
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,
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
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,
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
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,
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
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
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
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,
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:
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,
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,
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,
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,
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
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
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
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,
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
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,
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,
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:
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'},
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
46 matches
Mail list logo