Last modified: 2010-05-15 15:33:29 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 1028 - Page move over redirect fails (1.4/1.5)
Page move over redirect fails (1.4/1.5)
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: 202
  Show dependency treegraph
Reported: 2004-12-07 08:23 UTC by Brion Vibber
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Description Brion Vibber 2004-12-07 08:23:43 UTC
The new page move code violates the unique index on namespace+title when renaming a page over a 

Steps to reproduce:
1) Create page 'First title'
2) Move 'First title' to 'Second title'
3) Move 'Second title' to 'First title'

Actual behavior: Database error.

Expected behavior: The 'First title' and 'Second title' cur entries should have their titles swapped, and the 
redirect rewritten appropriately.

Failed query:

UPDATE cur SET cur_touched='20041207081745',cur_namespace='0',cur_title='First_title' WHERE 

from within function "Title::moveOverExistingRedirect". MySQL returned error "1062: Duplicate entry '0-
First_title' for key 2".
Comment 1 Brion Vibber 2004-12-10 06:13:35 UTC
Now removes the redirect and recreates it.

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