Last modified: 2006-04-23 00:45:29 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 5689 - XML-Import of a page version prior to existing history spoils diff page?
XML-Import of a page version prior to existing history spoils diff page?
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-04-22 21:24 UTC by Purodha Blissenbach
Modified: 2006-04-23 00:45 UTC (History)
1 user (show)

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

The imported xml data file. (1.68 KB, text/plain)
2006-04-22 21:32 UTC, Purodha Blissenbach

Description Purodha Blissenbach 2006-04-22 21:24:17 UTC
See for background info.

In order to prepare several 1000 xml files for being imported (name space prefixes in page titles, and contributor 
user names need adjustment), I made few tests.

There was already a page with an edit history, all of today 
(2006-Apr-22). I tried to import an older version of that page, which failed because there was an ASCII 0x1A (Ctrl/
Z) at the end of the file. Having it replaced by ASCII 0x0A (Ctrl/J, Line Feed), the import succeeded.

Next, I found the newly imported page listed twice in the article history.
Also, diff-ing against the imported page yielded unexpected results. Effectively, it refuses to show any 
differences, even no traces of the referred page are to be seen, only data from the imported page shows.

Consequentially, we shall not import any page histories for the time being, where a page of that name already 
exists. That is at most three dozen pages of thousands, i.e. no big deal. 

Note that the kshwiki uses Mediawiki Version  1.7alpha (r13760)  see 
 , which is not currently selectable in the "Enter Bug" form.

If you need to run tests in the kshwiki, feel free to do so. Using pages from User:Sockpuppet's user- an talkpage-
namespace won't harm anyone, he has been created by for this knd of 
Comment 1 Purodha Blissenbach 2006-04-22 21:32:47 UTC
Created attachment 1597 [details]
The imported xml data file.

See initial bug description.
True file format is not allowed to be entered manually:
Content-Type: text/xml; charset=utf-8
Comment 2 Brion Vibber 2006-04-22 22:23:17 UTC
It shows twice because you imported the same file twice.

Diff looks fine.

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