Last modified: 2014-11-04 16:14:26 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 T74070, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72070 - Duplicate-archive files not detected (previously deleted files when uploading identical [SHA1] files) when file extension is upper case
Duplicate-archive files not detected (previously deleted files when uploading...
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: High normal (vote)
: Future release
Assigned To: Rainer Rillke @commons.wikimedia
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-15 03:42 UTC by Rainer Rillke @commons.wikimedia
Modified: 2014-11-04 16:14 UTC (History)
7 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2014-10-15 03:42:13 UTC
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.
Comment 1 Umherirrender 2014-11-04 16:14:26 UTC
see also bug 41858

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


Navigation
Links