Last modified: 2014-07-27 10:42:50 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 T14507, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12507 - XML import does not update the redirect table
XML import does not update the redirect table
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
unspecified
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: This, that and the other (TTO)
http://download.wikimedia.org/itwikib...
:
Depends on:
Blocks:
  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: ---


Attachments

Description Pietrodn 2008-01-04 18:03:41 UTC
Hello.
I downloaded the it.wikibooks database from http://download.wikimedia.org/itwikibooks/20080104/. More precisely, I downloaded the "pages-meta-current.xml.bz2" dump.

I then created this list from the database dump: http://it.wikibooks.org/wiki/Wikibooks:Elenchi_generati_offline/Libri
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 http://it.wikibooks.org/w/index.php?title=Main_Page&redirect=no).
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.

Regards
Pietrodn
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.


Navigation
Links