Last modified: 2010-05-15 15:37:34 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 1427 - no redirect when renaming a page
no redirect when renaming a page
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.5.x
PC Linux
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-28 17:10 UTC by El
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Attachments

Description El 2005-01-28 17:10:14 UTC
When I rename a page, the redirect is not
created properly. There is an entry in the
revision table, but with rev_page=0.

The problem probably lies in Title::moveToNewTitle
(and Title::moveOverExistingRedirect):

$dbw->insert( 'revision', array(
			'rev_id' => $dbw->nextSequenceValue('rev_rev_id_seq'),
			'rev_comment' => $comment,
			'rev_user' => $wgUser->getID(),
			'rev_user_text' => $wgUser->getName(),
			'rev_timestamp' => $now,
			'inverse_timestamp' => $won ), $fname
		);

rev_page is missing here.
Comment 1 Antoine "hashar" Musso (WMF) 2005-01-31 23:01:29 UTC
Fixed now.
The redirect article was created correctly but innaccessible
cause of the missing rev_page.
Comment 2 El 2005-02-01 15:47:41 UTC
The same problem still exists in moveOverExistingRedirect.

And there is an additional bug in that function:
The old redirect is not deleted completely, only the
entry in the "page" table, not the entries in the
"revision" and "text" tables.
Comment 3 Brion Vibber 2005-04-22 12:05:14 UTC
Please test with current code and confirm if it's still there.
Comment 4 El 2005-04-29 10:36:27 UTC
Seems to be OK now.

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


Navigation
Links