Page MenuHomeMiraheze

CheckUser group bug
Closed, ResolvedPublic

Description

There appears to be a bug with the "check user" group. Even when the group is unset in LocalWiki.php, something is still defining it in ListGroupRights and userrights management. Apparently this is not just a Miraheze issue because @Void said they have seen it elsewhere. I suspect that this is upstream, but I'm not completely sure.

Event Timeline

Amanda created this object in space S1 Public.
Amanda created this object with edit policy "All Users".
Void lowered the priority of this task from High to Low.Apr 16 2017, 20:57

Little to no impact on site functionality.

I've been trying to figure out where the group is defined to begin with, but have been met with little luck. Unlike most other 'default' groups, it is not located in DefaultSettings.php, and is not apparent in the extension's files. Most likely Upstream.

Amanda raised the priority of this task from Low to Normal.Apr 17 2017, 15:55
Amanda added a project: Upstream.

Most other upstream tasks are normal

Reception123 lowered the priority of this task from Normal to Low.Apr 17 2017, 15:57

The other tasks prevent something to be done, this one is just a small disadvantage that doesn't actually affect anything.

@Amanda If you add an the Upstream it means that you have created an upstream task at https://phabricator.wikimedia.org . Please either do so or remove the task if it is not sure that this is an upstream issue.

John subscribed.

No longer valid.

Potentially was only a code ordering issue.

AmandaCath added a project: Upstream.
AmandaCath edited subscribers, added: AmandaCath; removed: Amanda.

This is still an issue, even ~6 months later, and therefore is not invalid. I have emailed the MediaWiki mailing list and CC’d staff@ - hopefully someone upstream can figure this out. Adding the upstream tag even though I didn’t file on WMF Phab (yet), since emailing the mailing list still technically counts as reporting/seeking advice from upstream.

Someone from upstream says that the following code needs to be used:

$wgExtensionFunctions[] = function() {
    if( array_key_exists( 'checkuser', $GLOBALS['wgGroupPermissions'] ) ) {
        unset( $GLOBALS['wgGroupPermissions']['checkuser'] );
    }
};

However, I am not sure where this code would go in Miraheze’s config.

AmandaCath assigned this task to Paladox.

Fixed by paladox in 22db977a07fc

Thanks to Karsten from upstream for supplying the code and thanks to paladox for implementing it.