Last modified: 2011-01-25 01:01:42 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 T19374, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17374 - special:export exports two copies of pages
special:export exports two copies of pages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-05 21:54 UTC by Steve Sanbeg
Modified: 2011-01-25 01:01 UTC (History)
2 users (show)

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


Attachments
sample script to call export (523 bytes, text/plain)
2009-02-18 00:17 UTC, Steve Sanbeg
Details

Description Steve Sanbeg 2009-02-05 21:54:12 UTC
When using the special:export for to export pages, if the include templates option is checked, the output will include two copies of any page whose title contains an underscore.  The workaround is just to replace each underscore with a space.

Bug is reproducable on the live sites (i.e. wikipedia) as well as a local wiki on the released version, so it looks like it's been around awhile.
Comment 1 Chad H. 2009-02-17 19:08:35 UTC
I can't confirm this on the live sites or my local install. Can you give an example page that does this?
Comment 2 Steve Sanbeg 2009-02-18 00:17:03 UTC
Created attachment 5826 [details]
sample script to call export
Comment 3 Steve Sanbeg 2009-02-18 00:18:44 UTC
I just saw the behavior on english wikipedia with the page "Main_Page", although any other page should have the same behavior.  It can be easily seen from a simple perl script (see attachment):

>perl bug.pl | grep '<title>Main'
    <title>Main Page</title>
    <title>Main Page</title>
Comment 4 Chad H. 2009-02-18 01:34:56 UTC
Ah I got it. Confirmed. Dunno why I didn't see it before.
Comment 5 Chad H. 2009-03-27 22:01:23 UTC
Fixed in r48938
Comment 6 Tim Starling 2009-05-04 11:00:34 UTC
That revision does not fix the bug. There are still plenty of ways to export duplicate titles, using non-normalised input, e.g.:

main Page
:Main Page
__Main Page

It needs to be done properly with Title::newFromText().
Comment 7 Brion Vibber 2009-07-20 02:48:07 UTC
Done in r53521

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


Navigation
Links