[Pywikipedia-bugs] [Maniphest] [Updated] T124466: Support logging in with Special:BotPassword passwords

2016-08-19 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T124466EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Lokal_Profil, jayvdb, Liuxinyu970226, Alkamid, Aklapper, StudiesWorld, valhallasw,

[Pywikipedia-bugs] [Maniphest] [Commented On] T124466: Support logging in with Special:BotPassword passwords

2016-08-19 Thread gerritbot
gerritbot added a comment. Change 305664 had a related patch set uploaded (by Merlijn van Deen): Add support for BotPasswords https://gerrit.wikimedia.org/r/305664TASK DETAILhttps://phabricator.wikimedia.org/T124466EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T124466: Support logging in with Special:BotPassword passwords

2016-08-19 Thread valhallasw
valhallasw added a comment. I think your patch makes a lot of sense. The current situation already is a bit of a mess (because everything is split through three classes without a clear separation of concerns). On the one hand having self.login_name feels like storing that information in the wrong

[Pywikipedia-bugs] [Maniphest] [Updated] T124466: Support logging in with Special:BotPassword passwords

2016-08-19 Thread valhallasw
valhallasw added a subscriber: gerritbot.valhallasw added a comment. This is probably a better place to discuss, so moving the comments from there to here: In T143417#2567675, @valhallasw wrote: I think the main thing is to separate the user name and the login name, and thus separating the

[Pywikipedia-bugs] [Maniphest] [Updated] T102477: login script -pass parameter ignored

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a comment. Is this still open or did the patch fix it? If still open could it be merged with T108848?TASK DETAILhttps://phabricator.wikimedia.org/T102477EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: Lokal_Profil, revi,

[Pywikipedia-bugs] [Maniphest] [Updated] T124466: Support logging in with Special:BotPassword passwords

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a comment. Duplicate of T143417 (or can that be considered a subtask)?TASK DETAILhttps://phabricator.wikimedia.org/T124466EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: Lokal_Profil, jayvdb, Liuxinyu970226, Alkamid,

[Pywikipedia-bugs] [Maniphest] [Updated] T139749: password_file in user-config does not respect -dir flag

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a project: Pywikibot-login.py. TASK DETAILhttps://phabricator.wikimedia.org/T139749EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: gerritbot, Aklapper, Zppix, Lokal_Profil, pywikibot-bugs-list, Lewizho99, Mdupont, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Commented On] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a comment. If we go for this solution we should not forget to #pywikibot-announce it afterwards.TASK DETAILhttps://phabricator.wikimedia.org/T143417EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: gerritbot, valhallasw,

[Pywikipedia-bugs] [Maniphest] [Commented On] T139749: password_file in user-config does not respect -dir flag

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a comment. If we go for this solution we should not forget to #pywikibot-announce it afterwards since there are rare situations where the fix (despite backwards compatibility) might break existing set-ups.TASK DETAILhttps://phabricator.wikimedia.org/T139749EMAIL

[Pywikipedia-bugs] [Maniphest] [Updated] T139749: password_file in user-config does not respect -dir flag

2016-08-19 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T139749EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Aklapper, Zppix, Lokal_Profil, pywikibot-bugs-list, Lewizho99, Mdupont, JJMC89, Maathavan,

[Pywikipedia-bugs] [Maniphest] [Commented On] T139749: password_file in user-config does not respect -dir flag

2016-08-19 Thread gerritbot
gerritbot added a comment. Change 305665 had a related patch set uploaded (by Lokal Profil): Make password_file respect -dir flag https://gerrit.wikimedia.org/r/305665TASK DETAILhttps://phabricator.wikimedia.org/T139749EMAIL

[Pywikipedia-bugs] [Maniphest] [Updated] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T143417EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_Profil, gerritbotCc: gerritbot, valhallasw, Aklapper, Lokal_Profil, pywikibot-bugs-list, Lewizho99, Mdupont,

[Pywikipedia-bugs] [Maniphest] [Commented On] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread gerritbot
gerritbot added a comment. Change 305664 had a related patch set uploaded (by Lokal Profil): Add support for BotPasswords https://gerrit.wikimedia.org/r/305664TASK DETAILhttps://phabricator.wikimedia.org/T143417EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Pywikipedia-bugs] [Maniphest] [Claimed] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil claimed this task.Lokal_Profil added a comment. Might have a first attemptTASK DETAILhttps://phabricator.wikimedia.org/T143417EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: valhallasw, Aklapper, Lokal_Profil, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Updated] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a comment. In T143417#2567675, @valhallasw wrote: I think the main thing is to separate the user name and the login name, and thus separating the username from the suffix. I'm inclined to say that the '@suffix' API wasn't a great design -- the suffix should have been part of

[Pywikipedia-bugs] [Maniphest] [Commented On] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a comment. In T143417#2567648, @Lokal_Profil wrote: In T143417#2567601, @Lokal_Profil wrote: My guess is that this needs to be fixed over in pywikibot/tools/__init__.py:DeprecatedRegex.normalize_username() in order to be handled correctly everywhere (several other functions

[Pywikipedia-bugs] [Maniphest] [Updated] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a parent task: T139492: Switch Erfgoedbot over to BotPassword or OAuth. TASK DETAILhttps://phabricator.wikimedia.org/T143417EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: valhallasw, Aklapper, Lokal_Profil,

[Pywikipedia-bugs] [Maniphest] [Commented On] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread valhallasw
valhallasw added a comment. I think the main thing is to separate the user name and the login name. I'm inclined to say that the '@suffix' API wasn't a great design -- the suffix should have been part of the password rather than the user name. As far as pywikibot is concerned, I would actually

[Pywikipedia-bugs] [Maniphest] [Triaged] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil triaged this task as "High" priority.Lokal_Profil added a comment. per T142623TASK DETAILhttps://phabricator.wikimedia.org/T143417EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lokal_ProfilCc: Aklapper, Lokal_Profil, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Commented On] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil added a comment. In T143417#2567601, @Lokal_Profil wrote: My guess is that this needs to be fixed over in pywikibot/tools/__init__.py:DeprecatedRegex.normalize_username() in order to be handled correctly everywhere (several other functions make the same assumption). But

[Pywikipedia-bugs] [Maniphest] [Edited] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil edited the task description. (Show Details) EDIT DETAILS...Unfortunately this does not handle usernames from BotPasswords (i.e. `@`, `@`)which I will call login_name to avoid confusion).TASK DETAILhttps://phabricator.wikimedia.org/T143417EMAIL

[Pywikipedia-bugs] [Maniphest] [Unassigned] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil removed Lokal_Profil as the assignee of this task.Lokal_Profil added a comment. My guess is that this needs to be fixed over in pywikibot/tools/__init__.py:DeprecatedRegex.normalize_username() in order to be handled correctly everywhere (several other functions make the same

[Pywikipedia-bugs] [Maniphest] [Created] T143417: assert self.site.user() fails when using BotPasswords

2016-08-19 Thread Lokal_Profil
Lokal_Profil created this task.Lokal_Profil added a project: Pywikibot-core.Herald added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONWhenever (edit) tokens are checked there is also also an assert self.site.user() to ensure that the user is (still) logged-in. Unfortunately this