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 assumption).

But normalize_username() is also used in login.py:LoginManager.readPassword() where we actually want the login_name and somewhere else which I have yet to identify.

The other place is in site.py:APISite.login.py() where we call on LoginManager and need to do so with the login_name.

Found one more place (which you hit if you e.g. do repo = pywikibot.Site().data_repository()).

In __init__.py.Site() user is passed through normalize_username before it is sent on to interface() where it at a later point ends up triggering a login. attempt suing the username ratehr than the login_name


TASK DETAIL
https://phabricator.wikimedia.org/T143417

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lokal_Profil
Cc: valhallasw, Aklapper, Lokal_Profil, pywikibot-bugs-list, Mdupont, JJMC89, jayvdb
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to