Page MenuHomePhabricator

Renaming user causes conflicting usernames in deleted file histories
Closed, ResolvedPublic

Description

Author: fetchcomms

Description:
Let's say a user uploads a file, the file is deleted, and the account is then renamed. When looking at Special:Undelete for the file page, the "File history" log entry shows the uploader's old username, while the "Page history" log shows the new username.

An example is http://en.wikipedia.org/wiki/Special:Undelete/File:Pekmez_poster.jpg:

Page history

(del/undel) (diff) 09:41, 13 September 2006 . . Posuur (talk | contribs | block) ({{no rights reserved}} Source: http://www.taris.com.tr)

File history

(del/undel) 09:41, 13 September 2006 . . Ugur Olgun (talk | contribs | block) 200 × 158 (15,443 bytes) ({{no rights reserved}} Source: http://www.taris.com.tr)

The file was deleted in 2009; the user was renamed in 2010. "Posuur" is the new username.

I've checked a couple other renamed accounts' deleted file histories, and the same issue persists.

I'm not sure if this occurs when a file is deleted *after* the user's rename because I haven't yet found an example for that.


Version: unspecified
Severity: minor
Whiteboard: aklapper-moreinfo

Details

Reference
bz33452

Event Timeline

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

This is already fixed (bug 27737) but the fix helps only by new renames.

You can use this bug as request to fix the database for that rename, see bug 29757.

So this is only about incomplete rename of Ugur Olgun?

Fletcher: Could you answer comment 2, please?

mysql:wikiadmin@db63 [enwiki]> UPDATE filearchive SET fa_user_text='Posuur' where fa_user = '1932143' AND fa_user_text = 'Ugur Olgun';
Query OK, 28 rows affected (0.01 sec)
Rows matched: 28 Changed: 28 Warnings: 0