Last modified: 2014-03-24 17:36:45 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 T65010, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63010 - maintenance/importDump.php is unable to import files whose sha1 starts with 0
maintenance/importDump.php is unable to import files whose sha1 starts with 0
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.23.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-24 14:32 UTC by unixway.drive+wm
Modified: 2014-03-24 17:36 UTC (History)
0 users

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


Attachments

Description unixway.drive+wm 2014-03-24 14:32:54 UTC
Intention:
Migrating some uploads cross the MW instances with full history.

Steps to Reproduce:
$ php maintenance/dumpBackup.php --full --pagelist=filelist --uploads --include-files > dump.xml
$ php maintenance/importDump.php --uploads < dump.xml

Actual Results:  
Some uploads have one or two history entries missed; for some you can ever get 'filepage-nofile-link' message if the only history entry is missed.


Reproducible: Always

I was able to workaround this monkeypatching includes/Import.php like this:

-                 if ( $sha1 && ( $sha1 !== sha1_file( $source ) ) ) {
+                 if ( $sha1 && ( $sha1 !== ltrim(sha1_file( $source ), '0') ) ) {

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


Navigation
Links