Wikimedia
Fix MediaWiki's handling of SHA1 hashes when importing files
Your task is to fix the issue set out in https://phabricator.wikimedia.org/T65010.
To test whether you have fixed the bug:
- Create a file on your hard disk that contains just the character
9with no newline at the end. This file has a SHA1 hash starting with 0. - Save the file with a
.txtextension. - Enable uploading on your local test MediaWiki installation and add
txtto the list of allowed file extensions (see documentation on MediaWiki.org) - Upload your test file to the wiki
- Run the
dumpBackupcommand line written in the Phabricator task - Delete the test file from the wiki
- Run the
importDumpcommand line written in the Phabricator task - Browse to your file's location on the wiki, see whether it says "no file exists" (bug) or lets you download the text file (no bug)
Task tags
Students who completed this task
Georggi