Page MenuHomePhabricator

Special:Export changes Project namespace prefix to SITENAME
Closed, ResolvedPublic

Description

When using Special:Export to export from the Project namespace, the <title> values should say <title>Project:ArticleName</title>. Instead, they say <title>$wgSiteName:ArticleName</title>.

For example, if you use Special:Export on a wiki (say, Wiki1) to create an XML file, then import into another wiki, Wiki2, then you will create the wrongly-named article "Wiki1:About" in Wiki2. This is bad and unexpected. Special:Export should use the exact article names chosen by the user doing the export.

Steps to Reproduce:

  1. Visit Special:Export on English Wikipedia.
  2. Enter "Project:About" and click the Export button.
  3. Examine the <title> tag and you'll see: <title>Wikipedia:About</title>, rather than <title>Project:About</title>. This is the bug.
  4. Now import the XML dump into another wiki. You create the wrongly-named article "Wikipedia:About" instead of "Project:About". This is the bad effect of the bug.

Version: 1.20.x
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=62109

Details

Reference
bz40010

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:05 AM
bzimport set Reference to bz40010.
bzimport added a subscriber: Unknown Object (MLST).
TTO claimed this task.
TTO subscribed.

The underlying issue here was fixed in 1.25 or 1.26 (Wiki1:About would now be imported to Wiki2:About as expected). As far as I can see, that is the only rationale for the change that is being requested here, so I'm going to mark this as resolved.