Last modified: 2011-03-13 18:06:18 UTC
The query returns the field 'rc_user_text' in the response's 'user' tag field. The expected behavior: - The query should return the 'rc_user' field in the 'user' tag - The query should return the 'rc_user_text' field in the 'user_text' tag. <b>Example Query:</b> http://localhost/wiki/api.php?action=query&list=recentchanges&rcprop=user|flags|ids|timestamp|title|sizes Query Response: <?xml version="1.0" encoding="utf-8"?> <api> <query> <recentchanges> <rc type="3" ns="-1" title="Special:Log/newusers" rcid="6" pageid="0" revid="0" old_revid="0" user="WikiReplicator" oldlen="0" newlen="0" timestamp="2007-07-19T17:52:52Z" /> <rc type="3" ns="-1" title="Special:Log/usetchglog" rcid="5" pageid="0" revid="0" old_revid="0" user="127.0.0.1" anon="" oldlen="0" newlen="0" timestamp="2007-07-19T17:52:52Z" /> <rc type="0" ns="0" title="Test FetchPartnerRC" rcid="4" pageid="100" revid="893" old_revid="892" user="WikiSysop" oldlen="93" newlen="91" timestamp="2007-07-19T17:36:38Z" /> <rc type="0" ns="0" title="Test FetchPartnerRC" rcid="3" pageid="100" revid="892" old_revid="891" user="WikiSysop" oldlen="92" newlen="93" timestamp="2007-07-19T17:35:18Z" /> <rc type="0" ns="0" title="Test FetchPartnerRC" rcid="2" pageid="100" revid="891" old_revid="885" user="WikiSysop" oldlen="91" newlen="92" timestamp="2007-07-19T17:33:10Z" /> <rc type="0" ns="8" title="MediaWiki:Sidebar/sysop" rcid="1" pageid="19" revid="890" old_revid="115" user="WikiSysop" oldlen="160" newlen="209" timestamp="2007-07-19T17:16:41Z" /> </recentchanges> </query> </api
This is by design. All relevant queries (revisions, recentchanges, and other) return the database field '*_user_text' as 'user' result. I see no point at exposing internal db field names as api results. Also, "anon" result is much more readable then understanding what "0" means in the '*_user' column.