Last modified: 2010-05-15 15:37:49 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 T5110, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3110 - Special:Import invalid token message on & in input
Special:Import invalid token message on & in input
Status: RESOLVED INVALID
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-10 21:18 UTC by Marc Meurrens (be) http://www.meurrens.org/
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Attachments

Description Marc Meurrens (be) http://www.meurrens.org/ 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) http://www.meurrens.org/ 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) http://www.meurrens.org/ 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.


Navigation
Links