Last modified: 2014-03-24 17:36:45 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') ) ) {