Page MenuHomePhabricator
Feed Advanced Search

Today

Huji awarded rOMWCfea69395e386: Migrate from InitialiseSettings to VariantSettings, a static array for… a Like token.
Mon, Sep 23, 1:58 AM

Fri, Sep 20

Huji created T233383: SQL Optimizer returns an error for a valid SQL query.
Fri, Sep 20, 2:44 AM · Tools

Wed, Sep 18

Huji added a comment to T233175: Add wgUserRights to mw.config object.

Fair enough. Thanks for the detailed explanation!

Wed, Sep 18, 11:23 AM · Performance-Team, MediaWiki-ResourceLoader
Huji added a comment to T233175: Add wgUserRights to mw.config object.

My current use case is to allow eliminators to have access to those features of Twinkle that have to do with deleting pages (currently, Twinkle restricts that script by checking the user's right).

Wed, Sep 18, 2:04 AM · Performance-Team, MediaWiki-ResourceLoader
Huji added a comment to T233175: Add wgUserRights to mw.config object.

The mw.user.getRights() approach works (and thanks for educating me on it). However, it is an async solution. Having something like mw.config.get('wgUserRights') that is available as soon as the page is loaded and can be used in a synchronous way would be awesome. Indeed, I don't see much value in the getRight being asynch because typically we don't expect a user's rights (or group memberships, for that matter) to change so often that we would want to query the API each time.

Wed, Sep 18, 1:08 AM · Performance-Team, MediaWiki-ResourceLoader

Tue, Sep 17

Huji created T233175: Add wgUserRights to mw.config object.
Tue, Sep 17, 11:55 PM · Performance-Team, MediaWiki-ResourceLoader

Sun, Sep 15

Huji added a comment to T156096: Deprecate and then reject empty operators.

My intent was not to criticize you, personally, @Krinkle. What I am trying to figure out is why in that RFC we never mentioned that there exists a group of sysadmins, yourself included, that already have the rights and permissions to modify filters for technical reasons only. I think the responses to that RFC would have differed if the participants knew that a group like this already exists. Right now, their point of reference is the Global Sysop group (which is significantly restricted by the opt-out process).

Sun, Sep 15, 5:28 PM · MW-1.34-release, Patch-For-Review, MW-1.34-notes (1.34.0-wmf.23; 2019-09-17), User-notice, User-Daimona, AbuseFilter
Huji added a comment to T156096: Deprecate and then reject empty operators.

@Daimona @Krinkle on one hand, we have https://meta.wikimedia.org/wiki/Requests_for_comment/Creating_abusefilter-manager_global_group in which there is ongoing debate about whether a central user should be allowed to modify filters; and as you know, I got Global Sysop rights explicitly to do that but it is limited to wikis that have not opted out.

Sun, Sep 15, 4:37 PM · MW-1.34-release, Patch-For-Review, MW-1.34-notes (1.34.0-wmf.23; 2019-09-17), User-notice, User-Daimona, AbuseFilter

Fri, Sep 13

Huji closed T232884: Don't allow restoring autopromotion by blocked users as Resolved.
Fri, Sep 13, 10:49 PM · MW-1.34-notes (1.34.0-wmf.23; 2019-09-17), User-DannyS712, AbuseFilter

Tue, Sep 10

Huji moved T186208: Magul's quick tests doesn't run anymore from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:30 AM · Release-Engineering-Team (CI & Testing services), Release-Engineering-Team-TODO, Patch-For-Review, Wikimedia-Hackathon-2019, Continuous-Integration-Config, Pywikibot-tests, Pywikibot
Huji moved T189321: Support for Lexicographical data/WikibaseLexeme in Pywikibot from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:30 AM · Patch-For-Review, Wikidata, Lexicographical data, Pywikibot, Pywikibot-Wikidata
Huji moved T107537: BasePage.get get_redirect and Flow from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:30 AM · Patch-For-Review, Pywikibot-Flow, Pywikibot
Huji moved T57102: listify to file option in category.py from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:30 AM · Pywikibot, Patch-For-Review, good first bug, Pywikibot-category.py
Huji moved T57234: bug with section titles in interwiki.py from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Patch-For-Review, Pywikibot, Pywikibot-interwiki.py
Huji moved T78452: Use pagegenerators consistently in scripts from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Pywikibot, Patch-For-Review, Pywikibot-pagegenerators.py
Huji moved T98106: writeToCommandLogFile() should be optional from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Pywikibot, Patch-For-Review, Pywikibot-network
Huji moved T108969: Update bot to support Flow and demo it from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Pywikibot, Patch-For-Review, Pywikibot-Flow
Huji moved T109309: Implement Flow-specific revision history support in Pywikibot from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Pywikibot, Patch-For-Review, Pywikibot-Flow
Huji moved T113165: Re-implement category -listify (CategoryListifyRobot) using listpages.py from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Pywikibot, Patch-For-Review, good first bug, Pywikibot-category.py
Huji moved T123892: fixing_redirects.py uses lower case page title in certain usecases from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Pywikibot-Scripts, Pywikibot, Patch-For-Review
Huji moved T192044: protect.py not filling customized summary from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Patch-For-Review, Pywikibot, Pywikibot-Scripts
Huji moved T217195: Add script misspelling support to pwb.py from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:29 AM · Patch-For-Review, good first bug, Pywikibot
Huji moved T218467: edit_restricted_templates to support all Wikipedias from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot
Huji moved T222885: EventStreams fails with sseclient 0.0.24 (Python 3.7.0) from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot-tests, Upstream, Pywikibot
Huji moved T223030: Remove allowed_failure and allowed_failure_if from tests/utils.py from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot-tests, Pywikibot
Huji moved T223713: Generator for Wanted:Templates (Modules later) in transferbot.py from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot-Scripts, good first bug, Pywikibot
Huji moved T224712: Attempt to login fails several times from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot, Pywikibot-tests
Huji moved T225465: UserWarning: Interwiki removal is in wikipedia codes from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Pywikibot-tests, Pywikibot
Huji moved T225631: test_template of l10n.TestValidTemplate fails for several sites from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot, Pywikibot-i18n, Pywikibot-tests
Huji moved T225781: l10n_test.TestValidTemplate always tests archivebot-archiveheader package from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot-tests, Pywikibot
Huji moved T228578: proxy in our user-config.py is throwing warning for all bots since recent parameter revomal from Backlog to Needs Review on the Pywikibot board.
Tue, Sep 10, 11:28 AM · Patch-For-Review, Pywikibot
Huji closed T220262: Enable create_categories.py for other sites as Resolved.
Tue, Sep 10, 11:28 AM · good first bug, Pywikibot, Pywikibot-Scripts

Sun, Sep 8

Huji closed T202204: Special:RandomInCategory should support specifying a namespace as Declined.

Declindes in favor of T200703 and it associated patch at https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/533728/ which will eliminate subcats form the results of RandomInCategory altogether.

Sun, Sep 8, 11:08 PM · Patch-For-Review, MediaWiki-Special-pages
Huji added a comment to T232260: Hamburger and notifications menu icons arehidden in mobile view of RTL languages in Chrome.

I am going to venture a guess that this is a Chrome-specific CSS problem similar to T232085, i.e. the "hamburger" icon comes from a ::after or ::before CSS rule, and Chrome messes it up in RTL settings. Can someone check with Safari too? Of note, and similar to T232085, Safari seems not to be affected. So this is not a WebKit issue, but specifically a Chrome issue.

Sun, Sep 8, 3:10 PM · MW-1.34-notes (1.34.0-wmf.21; 2019-09-03), Readers-Web-Backlog (Readers-Web-Kanbanana-2019-20-Q1), Browser-Support-Android-Google-Chrome, Browser-Support-Google-Chrome, Mobile, RTL, I18n, MobileFrontend
Huji closed T215005: IP addresses should be shown LTR as Resolved.
Sun, Sep 8, 1:57 PM · MW-1.34-notes (1.34.0-wmf.13; 2019-07-09), I18n, CheckUser
Huji added a comment to T232276: Phabricator issue on 2019-09-08; "Unable to establish a connection to any database host: Cannot assign requested address.".

Nonspecific. It happened to me at random and then it resolved itself. I am guessing there was a temporary issue with connecting to the database.

Sun, Sep 8, 12:59 PM · Phabricator
Huji committed rPWBC2579cad05cfa: Deprecate the ability to login with a secondary sysop account (authored by Huji).
Deprecate the ability to login with a secondary sysop account
Sun, Sep 8, 11:59 AM
Huji created T232276: Phabricator issue on 2019-09-08; "Unable to establish a connection to any database host: Cannot assign requested address.".
Sun, Sep 8, 11:57 AM · Phabricator

Sat, Sep 7

Huji added a comment to T71283: dualism between user and sysop needs to be overtaken.

I officially announced the deprecation in https://lists.wikimedia.org/pipermail/pywikibot/2019-September/009955.html

Sat, Sep 7, 6:17 PM · Patch-For-Review, Pywikibot-login.py, Pywikibot
Huji closed T231263: Pywikibot cannot delete pages despite the user having sufficient rights as Resolved.
Sat, Sep 7, 5:43 PM · Pywikibot
Huji committed rPWBC369be62fb65d: Fix the must_be decorator function (authored by Huji).
Fix the must_be decorator function
Sat, Sep 7, 5:19 PM
Huji added a comment to T231263: Pywikibot cannot delete pages despite the user having sufficient rights.

rPWBC5811a544278e: Check a user's rights rather than group memberships did not resolve the issue.
Now, with or without sysopnames in user-config.py nothing happens when Page.delete() (or Site.deletepage()) is used.

Pywikibot: [https] r-pywikibot-core.git (5811a54, g1, 2019/08/27, 08:48:32, OUTDATED)
Sat, Sep 7, 4:16 PM · Pywikibot

Fri, Sep 6

Huji added a comment to T232085: RTL Wikis problem with tags in RC, history, contribs etc..

... Edge and Firefox get it right ...

Fri, Sep 6, 7:28 PM · Browser-Support-Google-Chrome, MediaWiki-Special-pages, MediaWiki-Internationalization, RTL, I18n
Huji closed T232053: Filter is slower than expected as Resolved.

Understood. I am going to mark this as resolved for now (the purpose of the task was to figure out ways that could potentially make the filters faster, and we have achieved that).

Fri, Sep 6, 3:24 PM · AbuseFilter
Huji awarded T156095: Re-enable AbuseFilterCachingParser once we are sure it's safe a Love token.
Fri, Sep 6, 3:22 PM · MW-1.34-notes (1.34.0-wmf.24; 2019-09-24), Performance-Team, AbuseFilter
Huji added a comment to T232053: Filter is slower than expected.

@matej_suchanek @Daimona thanks for the quick response. What is your thought on Filter 198? Do you think ccnorm() is the culprit? (We can obviously make that the last rule if so.)

Fri, Sep 6, 1:06 PM · AbuseFilter
Huji closed T209804: Can't create election: SecurePollContentHandler::makeContentFromElection() must be an instance of SecurePoll_Election, bool given as Resolved.
Fri, Sep 6, 12:57 AM · MW-1.34-notes (1.34.0-wmf.22; 2019-09-10), Core Platform Team Workboards (Clinic Duty Team), MediaWiki-extensions-SecurePoll

Thu, Sep 5

Huji added a project to T232053: Filter is slower than expected: AbuseFilter.
Thu, Sep 5, 12:26 AM · AbuseFilter

Wed, Sep 4

Huji updated the task description for T232053: Filter is slower than expected.
Wed, Sep 4, 9:53 PM · AbuseFilter
Huji created T232053: Filter is slower than expected.
Wed, Sep 4, 9:52 PM · AbuseFilter
Huji claimed T231973: Implement recognition of persian integers in int function.

I was wrong. it appears we don't do a good job in mapping Arabic and Persian digits to those used in Latin-based languages like English, etc.

Wed, Sep 4, 1:26 PM · Patch-For-Review, Equivset
Huji added a comment to T231973: Implement recognition of persian integers in int function.

Wouldn't ccnorm() get the job done? To the extent I recall, ccnorm('1') == ccnorm('‍۱') and so forth.

Wed, Sep 4, 1:20 PM · Patch-For-Review, Equivset
Huji added a comment to T231985: Cannot create new abuse filters.

@Daimona here is where I have a problem with this: we have unit tests that create filters. How come none of them failed with I6436c7d2df8c1f0fc971f4a4079dac9118aa8209 ?

Wed, Sep 4, 1:15 PM · MW-1.34-notes (1.34.0-wmf.21; 2019-09-03), AbuseFilter

Tue, Sep 3

Huji added a comment to T231783: [Regression] Move Flow boards is not possible for an admin.

This is the part of code that prevented me from moving that flow board. It checks to see if I have the flow-create-board right (which I do not) and I cannot find any way this can be circumvented, as is, outside of giving flow-create-board right to admins (which, I'm not sure is desired or not). The reason I think so is because this permission is checked every time Hooks::onMovePageCheckPermissions() is called, which is literally on every page move.

Tue, Sep 3, 1:12 PM · Regression, StructuredDiscussions, Growth-Team

Mon, Sep 2

Huji closed T228961: -limit option does not work for checkimages.py any longer as Resolved.
Mon, Sep 2, 12:00 PM · Pywikibot-Scripts, Pywikibot

Wed, Aug 28

Huji closed T194520: Can not download a specific patch from Gerrit using git-review as Resolved.

Oh, I see. I was using 1.26.0 and now I upgraded to 1.28.0 and things work smoothly.

Wed, Aug 28, 3:52 PM · Release-Engineering-Team-TODO (201908), Gerrit, User-zeljkofilipin
Huji reopened T194520: Can not download a specific patch from Gerrit using git-review as "Open".

This was fixed in upstream about a year ago, yet on our instance of gerrit for WMF this issue still prevails.

Wed, Aug 28, 1:33 PM · Release-Engineering-Team-TODO (201908), Gerrit, User-zeljkofilipin

Tue, Aug 27

Huji added a project to T142303: Two-account workflow is not available with OAuth: User-Huji.
Tue, Aug 27, 8:18 PM · User-Huji, Pywikibot, Pywikibot-OAuth
Huji added a comment to T142303: Two-account workflow is not available with OAuth.

I am not fluent in MW API, so let me ask this: is there a way to ask the API "who am i"? Or "which groups am I a part of"?

https://www.mediawiki.org/w/api.php?action=query&meta=userinfo&uiprop=groups

Tue, Aug 27, 8:17 PM · User-Huji, Pywikibot, Pywikibot-OAuth
Huji placed T71283: dualism between user and sysop needs to be overtaken up for grabs.
Tue, Aug 27, 8:10 PM · Patch-For-Review, Pywikibot-login.py, Pywikibot
Huji added a comment to T71283: dualism between user and sysop needs to be overtaken.

Correct. What I was trying to say was that we should not spend clarifying how to do that (updating documentation, etc) right away.

Tue, Aug 27, 4:45 PM · Patch-For-Review, Pywikibot-login.py, Pywikibot
Huji awarded rEABF253a913746b8: Add `Daimona Eaytoy` to authors a Love token.
Tue, Aug 27, 2:17 PM
Huji added a comment to T71283: dualism between user and sysop needs to be overtaken.

config2.py needs to emit a warning that sysopnames don't work anymore (if we decide to just break it)

Tue, Aug 27, 2:03 PM · Patch-For-Review, Pywikibot-login.py, Pywikibot
Huji committed rPWBC5811a544278e: Check a user's rights rather than group memberships (authored by Huji).
Check a user's rights rather than group memberships
Tue, Aug 27, 1:11 PM
Huji added a subtask for T71283: dualism between user and sysop needs to be overtaken: T229293: invalid CSRF token error shown with each block.
Tue, Aug 27, 12:53 PM · Patch-For-Review, Pywikibot-login.py, Pywikibot
Huji added a parent task for T229293: invalid CSRF token error shown with each block: T71283: dualism between user and sysop needs to be overtaken.
Tue, Aug 27, 12:53 PM · Patch-For-Review, Pywikibot
Huji claimed T231263: Pywikibot cannot delete pages despite the user having sufficient rights.
Tue, Aug 27, 11:56 AM · Pywikibot
Huji committed rPWBCfa989672f46b: [PEP8] pep8 changes (authored by Huji).
[PEP8] pep8 changes
Tue, Aug 27, 2:34 AM

Mon, Aug 26

Huji added a comment to T85328: PEP-8 compliance.

Once https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/532473/ is merged, we are all clear (given the exclusions we have specified in tox.ini of course) and we can close this task. CI already takes care of the rest.

Mon, Aug 26, 10:20 PM · Pywikibot
Huji committed rPWBC27bcccf95376: [PEP8] pep8 changes (authored by Huji).
[PEP8] pep8 changes
Mon, Aug 26, 7:51 PM
Huji committed rPWBC71993d8152ea: Update tox.ini file to make it pycodestyle compliant (authored by Huji).
Update tox.ini file to make it pycodestyle compliant
Mon, Aug 26, 7:51 PM
Huji added a comment to T85328: PEP-8 compliance.

@Xqt from what I can see, the only issue pycodestyle finds with our current scripts is lack of compliance with E731 (do not assign a lambda expression, use a def) which happens with only the following:

Mon, Aug 26, 6:06 PM · Pywikibot
Huji created T231219: [pep8] section is deprecated. Use [pycodestyle]..
Mon, Aug 26, 5:46 PM · Pywikibot-tests, Pywikibot
Huji added a comment to T196880: List parameters in option list, not in blockquote.
Mon, Aug 26, 5:23 PM · Pywikibot, Pywikibot-Documentation
Huji closed T75545: Support Portuguese wiki flag 'eliminator' as Resolved.

I am assuming r531589 fixed this. Reopen if otherwise.

Mon, Aug 26, 5:22 PM · Patch-For-Review, Pywikibot
Huji closed T119335: as_group='sysop' not working properly as Resolved.

I am assuming r531589 fixed this. Reopen if otherwise.

Mon, Aug 26, 5:22 PM · Patch-For-Review, Pywikibot
Huji closed T122705: delete.py asks for password on *every* deletion as Resolved.

I am assuming r531589 fixed this. Reopen if otherwise.

Mon, Aug 26, 5:21 PM · Patch-For-Review, Pywikibot-Scripts, Pywikibot
Huji closed T229293: invalid CSRF token error shown with each block as Resolved.
Mon, Aug 26, 5:21 PM · Patch-For-Review, Pywikibot
Huji closed T229293: invalid CSRF token error shown with each block, a subtask of T229364: CSRF token issues (tracking), as Resolved.
Mon, Aug 26, 5:21 PM · Pywikibot, Pywikibot-tests
Huji closed T189126: Cannot delete more than one page with delete.py as Resolved.

I am assuming r531589 fixed this. Reopen if otherwise.

Mon, Aug 26, 5:21 PM · Pywikibot-Scripts, Pywikibot
Huji committed rPWBCee2d6d664c30: Check a user's rights before checking its group memberships (authored by Huji).
Check a user's rights before checking its group memberships
Mon, Aug 26, 5:09 PM
Huji added a comment to T213037: AbuseFilter should have an edit API.

I second Daimona's comment: we should try to avoid technical debt as much as possible. And that I think this could be a good reason for us to try to refactor code and make it even more modular, to reduce redundancy between future API code and web code.

Mon, Aug 26, 1:25 PM · MW-1.34-notes (1.34.0-wmf.21; 2019-09-03), Patch-For-Review, User-DannyS712, Core Platform Team, MediaWiki-API, AbuseFilter

Sun, Aug 25

Huji added a comment to T189126: Cannot delete more than one page with delete.py.

@MarcoAurelio it would be nice if you could test and confirm that my patch (r531589) can fix this issue

Sun, Aug 25, 1:07 PM · Pywikibot-Scripts, Pywikibot

Sat, Aug 24

Huji closed T231055: Make it easier to get to AbuseFilter logs for a deleted page as Resolved.
Sat, Aug 24, 12:15 PM · MW-1.34-notes (1.34.0-wmf.20; 2019-08-27), AbuseFilter, MediaWiki-Page-deletion

Aug 23 2019

Huji updated the task description for T231055: Make it easier to get to AbuseFilter logs for a deleted page.
Aug 23 2019, 1:45 PM · MW-1.34-notes (1.34.0-wmf.20; 2019-08-27), AbuseFilter, MediaWiki-Page-deletion

Aug 22 2019

Huji claimed T231055: Make it easier to get to AbuseFilter logs for a deleted page.
Aug 22 2019, 11:03 PM · MW-1.34-notes (1.34.0-wmf.20; 2019-08-27), AbuseFilter, MediaWiki-Page-deletion
Huji moved T231055: Make it easier to get to AbuseFilter logs for a deleted page from Backlog to Logging on the AbuseFilter board.
Aug 22 2019, 11:02 PM · MW-1.34-notes (1.34.0-wmf.20; 2019-08-27), AbuseFilter, MediaWiki-Page-deletion
Huji created T231055: Make it easier to get to AbuseFilter logs for a deleted page.
Aug 22 2019, 11:02 PM · MW-1.34-notes (1.34.0-wmf.20; 2019-08-27), AbuseFilter, MediaWiki-Page-deletion
Huji added a comment to T229293: invalid CSRF token error shown with each block.

@Ciencia_Al_Poder I agree with you in essence. All of these checks are a side effect of the fact that we have historically allowed a user to run *one* bot script with a configuration that includes *more than one* user account (one normal account, one sysop account). This is archaic, and if it was up to me, I would immediately drop it. And I am not alone in that point of view; see T71283#1040612

Aug 22 2019, 7:17 PM · Patch-For-Review, Pywikibot
Huji added a comment to T71283: dualism between user and sysop needs to be overtaken.

I am considering to take this over after T229293 is fixed. Besides site.py is there any other place where we allow dualism?

Aug 22 2019, 2:39 PM · Patch-For-Review, Pywikibot-login.py, Pywikibot
Huji added a comment to T229293: invalid CSRF token error shown with each block.

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, @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 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

Aug 22 2019, 2:02 AM · Patch-For-Review, Pywikibot
Huji triaged T230966: Using OAuth will prevent sysop-level functionalities as Normal priority.
Aug 22 2019, 1:25 AM · Pywikibot-OAuth
Huji created T230966: Using OAuth will prevent sysop-level functionalities.
Aug 22 2019, 1:25 AM · Pywikibot-OAuth
Huji added a comment to T229293: invalid CSRF token error shown with each block.

I just confirmed that the patch above fixes the issue both using the traditional username and password based user configuration, as well as using the BotPasswords configuration.

Aug 22 2019, 1:19 AM · Patch-For-Review, Pywikibot
Huji claimed T229293: invalid CSRF token error shown with each block.

I think I found the problem. Removing the MW tag, because this is indeed a Pywikibot bug. And my guess was on point: hard coded "sysop" values are the cause. You can find them here and here. Essentially, Pywikibot is being presumptuous that *only* sysops can block. This is wrong, and instead of checking the user group, the rights should be checked. I will submit a patch shortly, which fixes my problem and also avoids other similar problems in the future.

Aug 22 2019, 1:13 AM · Patch-For-Review, Pywikibot
Huji added a comment to T229293: invalid CSRF token error shown with each block.

And here is a comparison of the rights of the "sysop" group to those my bot holds by being in both "bot" and "botdamin" groups:

Aug 22 2019, 12:26 AM · Patch-For-Review, Pywikibot
Huji added a project to T229293: invalid CSRF token error shown with each block: MediaWiki-User-management.

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.

Aug 22 2019, 12:18 AM · Patch-For-Review, Pywikibot
Huji added a comment to T229293: invalid CSRF token error shown with each block.

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.

Aug 22 2019, 12:17 AM · Patch-For-Review, Pywikibot

Aug 21 2019

Huji added a comment to T229293: invalid CSRF token error shown with each block.

Correct. Here is how I have it now:

Aug 21 2019, 2:34 PM · Patch-For-Review, Pywikibot

Aug 20 2019

Huji added a comment to T229293: invalid CSRF token error shown with each block.

No. Only one instance, run in solitude.

Aug 20 2019, 1:48 PM · Patch-For-Review, Pywikibot