Page MenuHomePhabricator

CentralAuth doesn't shows user rights correctly
Closed, ResolvedPublicBUG REPORT

Description

Thanks to @Mtarch11 , we noticed that CA is completely wrong (for example, from here, it doesn't show itwiki sysop flag), while from here, it doesn't show both itwiki CU and sysop flag (but from local page it shows the local flag).

Plus other flags are totally wrong (like some invented autopatrolled or 'crat flag on other wikis)! This is happening for other users and other wikis too!

Do you have any idea what's going on? Thanks

EDIT: Here are some screens

Schermata 2024-01-24 alle 20.14.25.png (1×1 px, 286 KB)
Schermata 2024-01-24 alle 20.14.08.png (1×1 px, 296 KB)
Schermata 2024-01-24 alle 20.17.36.png (1×1 px, 349 KB)
Schermata 2024-01-24 alle 20.21.29.png (1×1 px, 335 KB)

Related Objects

Event Timeline

Change 992804 had a related patch set uploaded (by Majavah; author: Majavah):

[mediawiki/core@master] UserGroupManager: Fix cross-wiki database access

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

The problem is not limited to Meta-Wiki. CentralAuth at local projects are also displaying incorrect group(s), including the bot group on one, but I noticed bot group for longer period of time.

The code fix is being worked on / verified, we are talking about it on IRC Libera.Chat in #wikimedia-operations.

Change 992804 merged by jenkins-bot:

[mediawiki/core@master] UserGroupManager: Fix cross-wiki database access

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

Change 992781 had a related patch set uploaded (by Zabe; author: Majavah):

[mediawiki/core@wmf/1.42.0-wmf.15] UserGroupManager: Fix cross-wiki database access

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

@taavi proposed a fix which @Tgr reviewed.

I am going to deploy the change. It looks like I can test it by checking my account rights on https://meta.wikimedia.org/wiki/Special:CentralAuth?target=hashar , the view is missing I am a bureaucrat and sysop on https://www.mediawiki.org/ which the patch should fix.

Change 992781 merged by jenkins-bot:

[mediawiki/core@wmf/1.42.0-wmf.15] UserGroupManager: Fix cross-wiki database access

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

Mentioned in SAL (#wikimedia-operations) [2024-01-25T11:20:52Z] <hashar@deploy2002> Started scap: Backport for [[gerrit:992781|UserGroupManager: Fix cross-wiki database access (T355813)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-25T11:22:36Z] <hashar@deploy2002> hashar and zabe: Backport for [[gerrit:992781|UserGroupManager: Fix cross-wiki database access (T355813)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-25T11:29:43Z] <hashar@deploy2002> Finished scap: Backport for [[gerrit:992781|UserGroupManager: Fix cross-wiki database access (T355813)]] (duration: 08m 50s)

hashar assigned this task to taavi.

I have confirmed on the mwdebug servers that the patch does fix the issue when checking my account on https://meta.wikimedia.org/wiki/Special:CentralAuth?target=hashar . It is deployed now and should fix the issue for everyone.

Change 992969 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] rdbms: Remove $domain support from ::getDBFromRecency

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

Change 992969 merged by jenkins-bot:

[mediawiki/core@master] rdbms: Remove $domain support from ::getDBFromRecency

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