Huji added a comment.

  In T229293#5430073 <https://phabricator.wikimedia.org/T229293#5430073>, 
@JJMC89 wrote:
  
  > In T229293#5430001 <https://phabricator.wikimedia.org/T229293#5430001>, 
@Huji wrote:
  >
  >> First of all, I found out something really interesting: when I run the bot 
against test.wikipedia.org it works without any issues. When I run it against 
fa.wikipedia.org I get that Login Failed error followed by the script asking 
for my password.
  >> This made me remember that on fawiki we do not assign admin bots to the 
"sysop" group; instead, we assign them to the "botadmin" group. I added my bot 
to the "sysop" group as well and re-run it, and it did not show any error 
messages. So whatever is the issue has to do with the "botadmin" group (or more 
specifically, with the differences between its rights and that of the "sysop" 
group).
  >>
  >>> ! In T229293#5430002 <https://phabricator.wikimedia.org/T229293#5430002>, 
@Huji wrote:
  >>
  >> This can potentially be a MediaWiki bug (such as a hardcoded "sysop" value 
somewhere in the API code), so I am going to add a MW tag as well.
  >
  > I think this is pywikibot's @must_be 
<https://github.com/wikimedia/pywikibot/blob/5efeb820c15b75b797129e445faf77ee246e1105/pywikibot/site.py#L1298>
 decorator attempting to log the bot in as a sysop, which your bot couldn't do 
without being in the sysop group.
  > T71283: dualism between user and sysop needs to be overtaken 
<https://phabricator.wikimedia.org/T71283>
  
  Did not mean to ignore you here.
  
  The patch I submitted will do away with checking membership in the "sysop" 
group. Group membership is essentially irrelevant. Rights matter, groups don't. 
Now that we can check a user's rights, we should have a much easier time doing 
away with the user/sysop dualism.

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

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

To: Huji
Cc: JJMC89, Dvorapa, Dalba, Framawiki, Aklapper, Huji, pywikibot-bugs-list, 
Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, 
Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, 
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, 
WSH1906, Lewizho99, Mdupont, Maathavan, Altostratus, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to