Last modified: 2014-07-27 10:42:50 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 12507 - XML import does not update the redirect table
XML import does not update the redirect table
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: This, that and the other (TTO)
Depends on:
  Show dependency treegraph
Reported: 2008-01-04 18:03 UTC by Pietrodn
Modified: 2014-07-27 10:42 UTC (History)
8 users (show)

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


Description Pietrodn 2008-01-04 18:03:41 UTC
I downloaded the it.wikibooks database from More precisely, I downloaded the "pages-meta-current.xml.bz2" dump.

I then created this list from the database dump:
Since this list should contain all the books in our project, I discarded the redirects. Here is the query I used:

SELECT CONCAT( '# [[', page_title, ']]')
FROM `page`
WHERE `page_is_redirect` LIKE 0
AND `page_namespace` LIKE 0
AND `page_title` NOT REGEXP '[:/]'
ORDER BY `page_title`;

However, in the list there is "Main_Page", which is a redirect (see
I looked in my database ("page" table) with phpMyAdmin and noted that the "page_is_redirect" field for "Main_Page" is 0.
MediaWiki doesn't recognize "Main_Page" as a redirect, but that IS a redirect!

This error occurred also in the previous lists.

Comment 1 Tim Starling 2008-01-05 13:02:05 UTC
Fixed description, this is an import problem, not an export/download problem. 
Comment 2 Pietrodn 2008-01-20 16:23:46 UTC

*** This bug has been marked as a duplicate of bug 10931 ***
Comment 3 Tim Starling 2008-01-22 00:25:09 UTC
This bug is about the fact that Special:Import does not create entries in the redirect table. Bug 10931 is about missing entries in the redirect table in a particular wiki, which are missing for reasons unrelated to Special:Import.
Comment 4 Brion Vibber 2008-12-18 23:08:44 UTC
Another XML import thing to check for you, Ariel. :)
Comment 5 This, that and the other (TTO) 2014-07-27 10:42:50 UTC
Import/export redirect handling has been overhauled since 2008, and since I can't reproduce this bug locally, we can safely assume it has gone away.

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