Page MenuHomePhabricator

Internal error in ApiQueryAllUsers::execute: MediaWiki configuration error: The database contains more user groups than known to User::getAllGroups() function
Closed, ResolvedPublic

Description

The following query gives an error:
https://de.wikipedia.org/w/api.php?action=query&list=allusers&augroup=editor|autoreview&aulimit=1&auwitheditsonly=&aufrom=Halo1976

The original query used from client has limit=max, but the problem seems to be at this user, because it also fails for limit=1


Version: 1.24rc
Severity: major

Details

Reference
bz70496

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:54 AM
bzimport set Reference to bz70496.
bzimport added a subscriber: Unknown Object (MLST).

gerritadmin wrote:

Change 158889 had a related patch set uploaded by Anomie:
API: Fix list=allusers with multiple values for augroup

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

The idea with prop=groups is good, when using that query [1] some groups are double listed (and consumed to many of the limit). Is that also fixed with the change or another bug?

[1] https://de.wikipedia.org/w/api.php?action=query&list=allusers&augroup=editor|autoreview&aulimit=5&auwitheditsonly=&aufrom=Halo1976&auprop=groups

The double listing is also fixed with the change. What's happening there is that it's listing each user's groups for as many times as the user matches augroup.

Note that auprop=groups often won't reach the limit, unless all the users have 0 or 1 non-automatic groups. This is intended behavior.

gerritadmin wrote:

Change 158889 merged by jenkins-bot:
API: Fix list=allusers with multiple values for augroup

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

gerritadmin wrote:

Change 163596 had a related patch set uploaded by Anomie:
API: Rewrite queries for list=allusers

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

gerritadmin wrote:

Change 163596 merged by jenkins-bot:
API: Rewrite queries for list=allusers

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

Re-fixed. Should be deployed to WMF wikis with 1.25wmf2, see https://www.mediawiki.org/wiki/MediaWiki_1.25/Roadmap for the schedule.