Last modified: 2010-05-15 15:38:24 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 3159 - Import problem
Import problem
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-15 18:07 UTC by Marc Meurrens (be) http://www.meurrens.org/
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments
the XML file generated by export but producing an error on import (1.92 KB, text/xml)
2005-08-15 18:08 UTC, Marc Meurrens (be) http://www.meurrens.org/
Details
the XML file generated by export but producing an error on import (and on XML parsing) uploaded as a text/plain (1.92 KB, text/plain)
2005-08-15 18:13 UTC, Marc Meurrens (be) http://www.meurrens.org/
Details

Description Marc Meurrens (be) http://www.meurrens.org/ 2005-08-15 18:07:04 UTC
I previously reported this bug but it was closed due a a lack of explanation
on how to reproduce it.

Here is how to reproduce it.

1) On any wiki, create an article with the title :

Han s/ Lesse

(mind the slash)
and the content is e.g. :

''Han s/ Lesse'' is a nice belgian village located on the river ''Lesse''.
<br>''s/'' should be prononced ''sur'' and means, in english, ''on'' (in german
: oder)

2) now use the export functionnality
(I'll upload the file han-sur-lesse.xml for your facility but you can easely
generate it your self).

3) now, on a wiki where you are a sysop, try to import.
you'll get the error message : mismatched tag ...

4) the reason of the message and the bug are that the title includes a slash,
(which is not something unusual, at least to name french or german towns and
villages).

5) I had several similar bugs (mismatched tag, invalid token) when importing
data produced by an external source and converted to XML. This was more or less
normal :
let us say a 'feature', not a 'bug'... :-) (& < > in the text, etc)

6) but, in this very situation, the slash was accepted by mediawiki and was
exported. However, we need that an XML file exported, and then untouched, would be
reimported without problem.
So, in this very situation, I think it should be considered as a bug.

Hope this helps...

marc
Comment 1 Marc Meurrens (be) http://www.meurrens.org/ 2005-08-15 18:08:53 UTC
Created attachment 788 [details]
the XML file generated by export but producing an error on import
Comment 2 Marc Meurrens (be) http://www.meurrens.org/ 2005-08-15 18:11:25 UTC
Comment on attachment 788 [details]
the XML file generated by export but producing an error on import

><parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">Erreur d'analyse XML : balise ne correspondant pas. Attendu : &lt;/base&gt;.
>Emplacement : http://bugzilla.wikimedia.org/attachment.cgi?id=788&amp;action=view
>Numéro de ligne 31, Colonne 3 :<sourcetext>&lt;/siteinfo&gt;
>--^</sourcetext></parsererror>
Comment 3 Marc Meurrens (be) http://www.meurrens.org/ 2005-08-15 18:13:24 UTC
Created attachment 789 [details]
the XML file generated by export but producing an error on import (and on XML parsing) uploaded as a text/plain
Comment 4 Brion Vibber 2005-08-17 00:29:08 UTC
Your file is missing the close tag on the <base> element. I cannot reproduce this locally; I'm guessing 
you're saving the file from a web browser using a "save web page as local archive" mode of some kind 
which attempts to rewrite HTML, and it's corrupting the file. (HTML has a <base> element which cannot 
contain content, so the close tag might be removed by such a process.)

Try saving the file intact instead of as a corrupt web archive, and see if that helps.

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


Navigation
Links