Last modified: 2011-03-13 18:06:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10644 - recentchanges query returns 'rc_user_text' in 'user'
recentchanges query returns 'rc_user_text' in 'user'
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-07-19 18:45 UTC by Jean-Lou Dupont
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Jean-Lou Dupont 2007-07-19 18:45:21 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>

Query Response:
<?xml version="1.0" encoding="utf-8"?>
      <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="" 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" />
Comment 1 Yuri Astrakhan 2007-07-30 06:52:47 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.