Page MenuHomePhabricator

Querying suppression events (letype=suppress) through API returns an empty list
Closed, ResolvedPublic

Description

When log events are retrieved through the API, suppression events are filtered out, even for users in the oversight group. In particular, mywiki/api.php?action=query&list=logevents&letype=suppress always returns an empty list.

I think the issue comes from the following function call in includes/api/ApiQueryLogEvents.php, line 61:
$hideLogs = LogEventsList::getExcludeClause( $db );
Changing it to getExcludeClause( $db, 'user' ) should fix it.


Version: 1.21.x
Severity: normal

Details

Reference
bz43096

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:45 AM
bzimport set Reference to bz43096.
bzimport added a subscriber: Unknown Object (MLST).

Certainly seems so. Gerrit change 38907

Thanks Krenair for your work on this bug and bug 43137!

I didn't really do anything here except test, commit, and upload your fix. :P