Page MenuHomePhabricator

Special:Import displays wrong links to imported articles
Closed, ResolvedPublic


We use Special:Export to retrieve some articles and project opages from the German Wikipedia, and Special:Import on - a list of pages and numer of versions imported is shown as as a result. Page names are links, which usually link into the wiki of the upload. The project pages - having the namespace prefix "wikipedia" are incorrectly linked to the English Wikipedia.
Here is a piece of the html of the import response page:

<p>Importing pages...

<li><a href="/wiki/Krefeld" title="Krefeld">Krefeld</a> 0 revisions</li>
<li><a href="" title="wikipedia:WikiProjekt Krefeld">wikipedia:WikiProjekt Krefeld</a> 1 revision</li>
<li><a href="/wiki/Einwohnerentwicklung_von_Krefeld" title="Einwohnerentwicklung von Krefeld">Einwohnerentwicklung von Krefeld</a> 1 revision</li>
<li><a href="" title="wikipedia:Krefeld">wikipedia:Krefeld</a> 1 revision</li>
<li><a href="/wiki/Adalbert-Stiftung-Krefeld" title="Adalbert-Stiftung-Krefeld">Adalbert-Stiftung-Krefeld</a> 1 revision</li>
<li><a href="/wiki/Bahnbetriebswerk_Krefeld" title="Bahnbetriebswerk Krefeld">Bahnbetriebswerk Krefeld</a> 1 revision</li>
<li><a href="/wiki/Botanischer_Garten_Krefeld" title="Botanischer Garten Krefeld">Botanischer Garten Krefeld</a> 1 revision</li>
<li><a href="/wiki/Bundesstra%C3%9Fe_9" title="Bundesstraße 9">Bundesstraße 9</a> 1 revision</li>
<li><a href="/wiki/Bundesstra%C3%9Fe_288" title="Bundesstraße 288">Bundesstraße 288</a> 1 revision</li>
<li><a href="/wiki/Burg_H%C3%BCls" title="Burg Hüls">Burg Hüls</a> 1 revision</li>

This appear to me to be the result of a misinterpretation of the namespace prefix as an interwiki prefix.

There are two potential fixes. Both should be applied.

  1. Always make the list entries in the result page link to the local wiki. This is the 'real' remedy.
  1. Fix bug 5570. This would have avoided the wrong links in our case, but is not a general solution.

Version: 1.11.x
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:59 PM
bzimport set Reference to bz11344.
bzimport added a subscriber: Unknown Object (MLST).

Mass compoment change: <some> -> Export/Import

Note, the above link under 2) was misyped. It should go to bug 5770 indeed.

Import of such pages (wikipedia:Foo etc) would now be disallowed as an invalid title, unless you specify a target namespace or root page.

  • Bug 15918 has been marked as a duplicate of this bug. ***