Last modified: 2010-05-15 15:37:34 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 T3427, the corresponding Phabricator task for complete and up-to-date bug report information.
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