Page MenuHomePhabricator

list=recentchanges / rcprop / rcshow not working correctly
Closed, ResolvedPublic

Description

Author: science

Description:
When trying to obtain all recent changes, but suppressing anon users, the following query fails:

https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&list=recentchanges&format=json&rcstart=2014-03-04T00%3A00%3A00Z&rcdir=newer&rcnamespace=0&rcprop=userid%7Ctitle%7Cids%7Csizes&rcshow=!minor%7C!bot%7C!anon&rclimit=50

But adding "user" to rcprop, causes it to work correctly:

https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&list=recentchanges&format=json&rcstart=2014-03-04T00%3A00%3A00Z&rcdir=newer&rcnamespace=0&rcprop=user%7Cuserid%7Ctitle%7Cids%7Csizes&rcshow=!minor%7C!bot%7C!anon&rclimit=50

No idea why, but hopefully those repro steps will help someone knowledgeable to fix this? Contact me anytime for more info or more work on repro steps / bug analysis.


Version: unspecified
Severity: normal

Details

Reference
bz62301

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:03 AM
bzimport set Reference to bz62301.

It's not that the query fails, it's returning the right edits. But it wrongly claims all the edits are anon.

Change 117158 had a related patch set uploaded by Anomie:
API: Fix logic for list=recentchanges prop=userid

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

Change 117158 merged by jenkins-bot:
API: Fix logic for list=recentchanges prop=userid

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

This should be deployed to WMF wikis with 1.23wmf17, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.