Last modified: 2014-09-30 15:24:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36873, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34873 - Special:Contributions no longer shows contributions by name - problems listing contributions stored with user ID = 0
Special:Contributions no longer shows contributions by name - problems listin...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.19
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/wiki/Special...
:
: 34862 37735 45177 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-01 21:27 UTC by Derk-Jan Hartman
Modified: 2014-09-30 15:24 UTC (History)
14 users (show)

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


Attachments

Description Derk-Jan Hartman 2012-03-01 21:27:30 UTC
https://en.wikipedia.org/wiki/Special:Contributions/62.253.64.xxx

has contributions as the API shows: https://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=62.253.64.xxx

the delected contribs of this user are also visible https://en.wikipedia.org/wiki/Special:DeletedContributions/62.253.64.xxx , it's just Special:Contributions which is no longer able to list the user it seems.
Comment 1 Mark A. Hershberger 2012-03-01 21:30:18 UTC
deployment has happened but we want this fixed for the tarball.
Comment 2 Aaron Schulz 2012-03-01 22:10:22 UTC
Fixed in r112843.
Comment 3 Graham87 2012-03-02 07:01:33 UTC
I was the one who originally noted this bug at the technical village pump:
http://en.wikipedia.org/wiki/Wikipedia:Vpt#Contributions_lists_for_truncated_IP_addresses_don.27t_work_anymore

I did some more testing today and discovered more cases where the contributions are no longer listed properly, because the user's edits are attached to more than one userid in the database. This usually happens because the edits were imported from the UseModWiki database in September 2002 under user ID 0 (because the accounts didn't exist then), and then other edits were imported from the Nostalgia Wikipedia later or the account was compromised. Compare this:
http://en.wikipedia.org/wiki/Special:Contributions/LarrySanger

with this:
http://nostalgia.wikipedia.org/wiki/Special:Contributions/LarrySanger

Also, the edits that are assigned to the username "0" from 2002 don't show up with Special:Contributions either, presumably because they are listed under several userids:
http://en.wikipedia.org/wiki/User:0
http://en.wikipedia.org/wiki/special:Contributions/0

The same is true of Conversion scrip:
http://en.wikipedia.org/wiki/Special:Contributions/conversion_script

This is also true of the truncated IP address 11.105, which has many many edits due to a bug in the first version of MediaWiki (I created an account under that name to avoid impersonation):
http://en.wikipedia.org/wiki/Special:Contributions/11.105
Comment 4 Platonides 2012-07-14 18:19:07 UTC
This was caused by r100300 (intended to allow JOINing to get user_name) by no longer searching by username but by id.
I vote to revert this behavior, and make Special:Contributions search again by username (ie. rc_user_text).
Comment 5 Platonides 2012-07-14 18:25:42 UTC
*** Bug 37735 has been marked as a duplicate of this bug. ***
Comment 6 Platonides 2012-07-14 18:49:04 UTC
*** Bug 34862 has been marked as a duplicate of this bug. ***
Comment 7 Krinkle 2012-07-21 19:50:24 UTC
It appears to be fixed now.

https://en.wikipedia.org/wiki/Special:Contributions/62.253.64.xxx shows contributions.


And when testing locally on the latest master, edits by maintenance scripts (user id 0) also show up properly.
Comment 8 Platonides 2012-07-21 20:38:54 UTC
It's not, see for intance http://nl.wiktionary.org/wiki/Speciaal:Bijdragen/Metr%C3%B3nomo where edits do exist: http://nl.wiktionary.org/w/index.php?diff=prev&oldid=1070120

You're seeing a workaround, where if there isn't an account with that name, searches by text, but if the account exists, it searches by user id.
Which leads to odd situations such as the contributions you were seeing magically disappear when you login for the first time (see bug 37735).
Comment 9 Aaron Schulz 2012-07-21 20:45:34 UTC
We should really fix the DB entries. If the edits are by user X, they should be recorded as such. Maybe the import/user logic could be changed to handles this better, though it's bit tricky.
Comment 10 Krinkle 2012-07-21 20:55:59 UTC
The problem is that when importing things from a different wiki, the username can be someone else. So that's why (afaik) the import system specifically does not tie edits to a user id.
Comment 11 Aaron Schulz 2012-07-22 00:59:32 UTC
(In reply to comment #10)
> The problem is that when importing things from a different wiki, the username
> can be someone else. So that's why (afaik) the import system specifically does
> not tie edits to a user id.

Right, and so why should would list the contribs of both users under the one name? Either we go all the way or don't. I'd prefer not attributing things to someone unless it is that person for sure.

Such rows could perhaps be flagged and displayed slightly differently in history/RC links. If the contribs link had an extra parameter it could show header or footer about the edits being imported and list by rev_user_text = X.
Comment 12 Krinkle 2012-07-22 01:19:42 UTC
.. and not to mention how to deal with imports from different wikis :D
Comment 13 Graham87 2012-07-22 02:20:47 UTC
(In reply to comment #10)
> The problem is that when importing things from a different wiki, the username
> can be someone else. So that's why (afaik) the import system specifically does
> not tie edits to a user id.
When an edit is imported using Special:Import, it is tied to a user ID if there is an account under that name. If not, it's imported as user ID 0.
Comment 14 Graham87 2012-07-22 02:22:53 UTC
And the same thing happened with the script that imported UseModWiki edits from September 2002, except many of those accounts had not yet been created, hence many of them are under user ID 0.
Comment 15 Platonides 2012-07-22 12:25:37 UTC
(In reply to comment #11)
> Right, and so why should would list the contribs of both users under the one
> name? Either we go all the way or don't. I'd prefer not attributing things to
> someone unless it is that person for sure.

Except that it is usually the same person.

When they ask for contributions of Foo, we should show every edit we are attributing to Foo. Doing otherwise is inconsistent.

I'm not opposed to the proposal of annotating them in an special way. We could for instance show that it it imported, and even from which page, storing it at change_tag. But they should still be shown in Special:Contributions.
Comment 16 Graham87 2013-03-29 23:14:19 UTC
*** Bug 45177 has been marked as a duplicate of this bug. ***

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


Navigation
Links