Last modified: 2014-07-26 08:56:31 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 T6520, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4520 - Special:Import does not consider XML namespace
Special:Import does not consider XML namespace
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Ariel T. Glenn
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-07 18:13 UTC by Martin Szugat
Modified: 2014-07-26 08:56 UTC (History)
4 users (show)

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


Attachments

Description Martin Szugat 2006-01-07 18:13:11 UTC
Trying to import an XML file that uses a prefix, e.g. "mw", for the 
namespace "http://www.mediawiki.org/xml/export-0.3.xsd" fails (exception messages are 
shown). However, the Special:Import page reports that all pages were imported.
Comment 1 Brion Vibber 2006-02-03 03:23:57 UTC
Can you provide a sample file to test with?
Comment 2 Martin Szugat 2006-02-03 10:35:33 UTC
(In reply to comment #1)
> Can you provide a sample file to test with?

I'll send you one per Email. It looks like this:

<mw:mediawiki xmlns:mw="http://www.mediawiki.org/xml/export-0.3/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ 
http://www.mediawiki.org/xml/export-0.3.xsd" version="0.3" xml:lang="en">
<mw:page>
  <mw:title>Test</mw:title>
    <mw:revision>
      <mw:timestamp>2010-12-31T00:00:00Z</mw:timestamp>
      
<mw:contributor><mw:username>WikiSysop</mw:username><mw:id>1</mw:id></mw:contributo
r>
      <mw:text xml:space="preserve">Test</mw:text>
      </mw:revision>
</mw:page>
</mw:mediawiki>

And the results is:


Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276

Warning: xml_parse() [function.xml-parse]: Unable to call handler () in 
C:\Programme\XAMPP 1.5.0 pl1\xampp\htdocs\prothesaurus\includes\SpecialImport.php 
on line 276
Import pages
From ProThesaurus
Import succeeded! 
Comment 3 Siebrand Mazeland 2008-08-18 18:55:26 UTC
Mass compoment change: <some> -> Export/Import
Comment 4 Mike.lifeguard 2008-10-09 04:17:24 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Can you provide a sample file to test with?
> 
> I'll send you one per Email. It looks like this:
> 

You can probably attach that to the bug.
Comment 5 Brion Vibber 2008-12-11 18:47:58 UTC
Some work done in r44246; some further work needed (see comments on revision).
Comment 6 Gerrit Notification Bot 2014-07-26 08:56:28 UTC
Change 149508 had a related patch set uploaded by TTO:
Use XML localName when importing

https://gerrit.wikimedia.org/r/149508

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


Navigation
Links