Last modified: 2010-05-15 15:33:29 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 T3028, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1028 - Page move over redirect fails (1.4/1.5)
Page move over redirect fails (1.4/1.5)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.4.x
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: ---


Attachments

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 
redirect.

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 
cur_id='948'

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.


Navigation
Links