Last modified: 2013-07-25 09:16:41 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 T51517, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49517 - E:UserMerge throws a database error for a duplicate entry for wl_user when trying to merge and delete a user
E:UserMerge throws a database error for a duplicate entry for wl_user when tr...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UserMerge (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: T. Gries
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-13 07:45 UTC by T. Gries
Modified: 2013-07-25 09:16 UTC (History)
0 users

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


Attachments

Description T. Gries 2013-06-13 07:45:47 UTC
Generally, the extension:UserMerge works fine, but while trying to merge and delete one specific user, the operation fails.

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    (SQL query hidden)

from within function "DatabaseBase::update". Database returned error "1062: Duplicate entry '1-0-VIAF' for key 'wl_user' (localhost)".
Comment 1 T. Gries 2013-06-18 21:57:05 UTC
The problem is already mentioned here https://www.mediawiki.org/wiki/Extension_talk:UserMerge#Workaround and happens, when the old user ("merge from old user") and the new user ("merge to new user") have same active watch list entries.

The error message is then this one

Cannot set `wl_user` = '1234' WHERE `wl_user` = '10'. MySQL error 1062: - Duplicate entry '1234-0-Main Page' for key 1"


One suggested solution is:
==========================

to delete ***one*** of those both watchlist entries which old and new user have in common, and then to merge.
Comment 2 T. Gries 2013-06-25 23:50:12 UTC
patch in gerrit https://gerrit.wikimedia.org/r/#/c/69017/

see requirements (requires MediaWiki after 2013-06-25)
Comment 3 T. Gries 2013-07-25 09:16:41 UTC
solved: https://gerrit.wikimedia.org/r/#/c/69017/ is already merged after review

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


Navigation
Links