Last modified: 2011-05-05 18:02:34 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 T30833, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28833 - Exporting nonexistent page returns broken XML file, should show error message
Exporting nonexistent page returns broken XML file, should show error message
Status: RESOLVED DUPLICATE of bug 28415
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-05 11:00 UTC by Roan Kattouw
Modified: 2011-05-05 18:02 UTC (History)
1 user (show)

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


Attachments
Broken XML file with no page, only siteinfo (1.90 KB, application/xml)
2011-05-05 11:00 UTC, Roan Kattouw
Details

Description Roan Kattouw 2011-05-05 11:00:57 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.
Comment 1 Brion Vibber 2011-05-05 17:51:47 UTC
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
Comment 2 Roan Kattouw 2011-05-05 18:02:34 UTC
(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 ***

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


Navigation
Links