Last modified: 2010-05-15 15:37:49 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 3110 - Special:Import invalid token message on & in input
Special:Import invalid token message on & in input
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-08-10 21:18 UTC by Marc Meurrens (be)
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Description Marc Meurrens (be) 2005-08-10 21:18:02 UTC
when importing data, 
the import feature fails if, within the <text></text> area
(thus typically in the "user" part of the file)
there is & character.
(say : Alice & Bob )
Comment 1 Marc Meurrens (be) 2005-08-10 21:29:19 UTC
I forgot to say that eveything works properly if you use
 &amp; &lt; &gt; characters.
And that these characters are properly generated when exporting.

However, the problem arises when you prepare your own XML file
from data coming from another source.

So this bug report may be consider as a small bug or as a documentation problem.

(I believe it would be interesting to facilitate the importation/exchange
of data with non mediawiki applics or even with non wiki applic...)

Comment 2 Marc Meurrens (be) 2005-08-10 22:52:52 UTC
there is a similar problem with the slash  " / "
but more serious.

the $this->mTitle instance variable remains null
and there is thus a PHP error when trying to get the namespace on
this unexistant object.

the problem appears when the " / " is in the title of the page.

on the other and, replacing " / " by &#47; in the title is OK,
but replacing " / " by &#47; in the text is not really loved by the 
program : invalid token (due to the & of &#47;).

Note that, in this case, seems that the export functionnality *will*
generate the " / ", thus producing a PHP error when reimporting mediawiki data.

Comment 3 Brion Vibber 2005-08-11 06:45:09 UTC
Input must, in fact, be valid, or you will of course get errors -- so closing this bug.

Please provide a sample input file that you believe should be valid but which fails, if you think there's a problem.

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