Last modified: 2011-05-05 18:02:34 UTC
Created attachment 8499 [details] Broken XML file with no page, only siteinfo Saw this behavior after a support question in #mediawiki . The person asking for help had put "http://en.wikipedia.org/wiki/Foo" in the Special:Export text box instead of simply "Foo". MediaWiki looked for a page called "http://en.wikipedia.org/wiki/Foo" , didn't find one, and output an XML file (attached) with no pages, just siteinfo. Reportedly (I didn't test this), Special:Import barfs on that. We should show an error/warning message for nonexistent titles instead of silently dropping them, and in no case should the exporter produce XML that the importer can't work with.
The file's not broken, it just doesn't contain any pages. If you give a list of 5000 pages and 4998 of them exist and 2 don't, you'll get the 4998 existing pages out -- it would be *VERY* wrong to refuse to output. However it would indeed be useful to be able to warn that some requested items weren't available. There's already a jidanni bug open on this issue, if you would like to merge to it: bug 28415
(In reply to comment #1) > The file's not broken, If the importer barfs on it (again, this is what I heard on IRC, haven't tested that myself) I consider that broken. > There's already a jidanni bug open on this issue, if you would like to merge to > it: bug 28415 Alright, duping and noting there's some information here. *** This bug has been marked as a duplicate of bug 28415 ***