Page MenuHomePhabricator

LoginManager.botAllowed compares Page object with string
Closed, ResolvedPublic

Description

compairing template from templatesWithParams() with botTemplate work incorrect because template is a Page object whereas botTemplate is a string. This is a result of incompatible templatesWithParams() method between compat and core.

Event Timeline

Xqt triaged this task as High priority.Feb 3 2018, 1:20 PM

Change 407917 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Fix using templatesWithParams results

https://gerrit.wikimedia.org/r/407917

Change 407917 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Fix using templatesWithParams results

https://gerrit.wikimedia.org/r/407917

Possible similar issue in imagecopy_self.py and solve_disambiguation.py.

solve_disambiguation.py issue is T186394 the other is T186459