https://bugzilla.wikimedia.org/show_bug.cgi?id=27016
Summary: rev 77305 writes to stdout instead of using specified
sink, breaking xml dumps
Product: MediaWiki
Version: 1.17
Platform: All
OS/Version: All
Status: NEW
Severity: blocker
Priority: Normal
Component: Maintenance scripts
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Blocks: 26611
new code is:
$writer = new XMLWriter();
$writer->openURI( 'php://stdout' );
in dumpTextPass.php
This bypasses the write functions for the user-specified sink which for example
would write several compressed streams at once to different files.
This will break XML dumps.
Tested from the command line against trunk using the command
/usr/bin/php -q
/home/ariel/src/mediawiki/testing/phase3/maintenance/dumpTextPass.php
--wiki=elwikidb
--stub=gzip:/home/ariel/src/mediawiki/testing/dumps/public/elwikidb/20110127/elwikidb-20110127-stub-meta-current1.xml.gz
--prefetch=bzip2:/home/ariel/src/mediawiki/testing/dumps/public/elwikidb/20110125/elwikidb-20110125-pages-meta-current1.xml.bz2
--force-normal --report=1000 --server=localhost --spawn=/usr/bin/php
--output=bzip2:/home/ariel/src/mediawiki/testing/dumps/public/elwikidb/20110127/elwikidb-20110127-pages-meta-current1.xml.bz2
and it wrote to stdout (it opened the specified output file which then had
length 14 bytes = empty file).
(replace with files of your choice on a local install).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l