Last modified: 2011-02-08 23:45:58 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 T29263, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27263 - importDump isn't intuitive enough
importDump isn't intuitive enough
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-08 19:54 UTC by Mark A. Hershberger
Modified: 2011-02-08 23:45 UTC (History)
1 user (show)

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


Attachments

Description Mark A. Hershberger 2011-02-08 19:54:51 UTC
I'm trying to import a dump, so I know to use importDump.

However, that's all I know.

Now, I know the answer is "How do you expect to do anything without reading the documentation?" but importDump doesn't even tell me which Wiki page to look at.  Plus, I'm a cowboy.  Running software without reading the docs has worked pretty well for me in the past, so why shouldn't it this time?

So I go to the command line and run it, but it just sits there, waiting for input, I suppose.  Asking it for --help does nothing.  Feeding it /dev/null with the vain hope of getting some useful error message only spews (in my xdebug-enabled installation) the following errors:

PHP Warning:  XMLReader::read(): uploadsource://b9c91e0b515c5d3cc26e72bfe3e2c3e7:1: parser error : Extra content at the end of the document in includes/Import.php on line 347
PHP Stack trace:
PHP   1. {main}() maintenance/importDump.php:0
PHP   2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP   3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP   4. WikiImporter->doImport() maintenance/importDump.php:156
PHP   5. XMLReader->read() includes/Import.php:347

Warning: XMLReader::read(): uploadsource://b9c91e0b515c5d3cc26e72bfe3e2c3e7:1: parser error : Extra content at the end of the document in includes/Import.php on line 347

Call Stack:
    0.0005     718336   1. {main}() maintenance/importDump.php:0
    0.0366    6141008   2. BackupReader->importFromStdin() maintenance/importDump.php:184
    0.0366    6141840   3. BackupReader->importFromHandle() maintenance/importDump.php:134
    0.0392    6736824   4. WikiImporter->doImport() maintenance/importDump.php:156
    0.0392    6736904   5. XMLReader->read() includes/Import.php:347

PHP Warning:  XMLReader::read():  in includes/Import.php on line 347
PHP Stack trace:
PHP   1. {main}() maintenance/importDump.php:0
PHP   2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP   3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP   4. WikiImporter->doImport() maintenance/importDump.php:156
PHP   5. XMLReader->read() includes/Import.php:347

Warning: XMLReader::read():  in includes/Import.php on line 347

Call Stack:
    0.0005     718336   1. {main}() maintenance/importDump.php:0
    0.0366    6141008   2. BackupReader->importFromStdin() maintenance/importDump.php:184
    0.0366    6141840   3. BackupReader->importFromHandle() maintenance/importDump.php:134
    0.0392    6736824   4. WikiImporter->doImport() maintenance/importDump.php:156
    0.0392    6736904   5. XMLReader->read() includes/Import.php:347

PHP Warning:  XMLReader::read(): ^ in includes/Import.php on line 347
PHP Stack trace:
PHP   1. {main}() maintenance/importDump.php:0
PHP   2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP   3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP   4. WikiImporter->doImport() maintenance/importDump.php:156
PHP   5. XMLReader->read() includes/Import.php:347

Warning: XMLReader::read(): ^ in includes/Import.php on line 347

Call Stack:
    0.0005     718336   1. {main}() maintenance/importDump.php:0
    0.0366    6141008   2. BackupReader->importFromStdin() maintenance/importDump.php:184
    0.0366    6141840   3. BackupReader->importFromHandle() maintenance/importDump.php:134
    0.0392    6736824   4. WikiImporter->doImport() maintenance/importDump.php:156
    0.0392    6736904   5. XMLReader->read() includes/Import.php:347

PHP Warning:  XMLReader::read(): An Error Occured while reading in includes/Import.php on line 347
PHP Stack trace:
PHP   1. {main}() maintenance/importDump.php:0
PHP   2. BackupReader->importFromStdin() maintenance/importDump.php:184
PHP   3. BackupReader->importFromHandle() maintenance/importDump.php:134
PHP   4. WikiImporter->doImport() maintenance/importDump.php:156
PHP   5. XMLReader->read() includes/Import.php:347

Warning: XMLReader::read(): An Error Occured while reading in includes/Import.php on line 347

Call Stack:
    0.0005     718336   1. {main}() maintenance/importDump.php:0
    0.0366    6141008   2. BackupReader->importFromStdin() maintenance/importDump.php:184
    0.0366    6141840   3. BackupReader->importFromHandle() maintenance/importDump.php:134
    0.0392    6736824   4. WikiImporter->doImport() maintenance/importDump.php:156
    0.0392    6736904   5. XMLReader->read() includes/Import.php:347

Expected <mediawiki> tag, got 
Backtrace:
#0 maintenance/importDump.php(156): WikiImporter->doImport()
#1 maintenance/importDump.php(134): BackupReader->importFromHandle(Resource id #30)
#2 maintenance/importDump.php(184): BackupReader->importFromStdin()
#3 {main}


Fine.  Time to use Google, read the source, and file a bug.
Comment 1 Brion Vibber 2011-02-08 22:01:07 UTC
Should be tweaked to show help text if no file given and stdin is a tty.
Comment 2 Brion Vibber 2011-02-08 23:45:58 UTC
done in r81796

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


Navigation
Links