https://bugzilla.wikimedia.org/show_bug.cgi?id=72070
Bug ID: 72070
Summary: Duplicate-archive files not detected (previously
deleted files when uploading identical [SHA1] files)
when file extension is upper case
Product: Wikimedia
Version: wmf-deployment
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
I do not get any warning when I upload a file with an upper case file extension
whose content consists of entirely the same data and therefore calculates to
the same SHA1 hash at test.wikipedia.org and it is reported to be the same at
commons.wikipedia.org.
This is because MediaWiki looks up the files by
{hash}.{file-extension}==fa_storage_key. Since fa_storage_key contains only
lower-case file extensions and upper case extension are not normalized, nothing
is found upon uploading files with upper case file extensions. This should be
trivial to fix: Look up the SHA1 and not the storage key.
--
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