https://bugzilla.wikimedia.org/show_bug.cgi?id=52925

--- Comment #4 from Brion Vibber <[email protected]> ---
Ah, I see what you mean now. :)


In practice this isn't a big problems; files differing by case will be stored
in separate subdirectories because eg 'Foo.jpg' and 'FoO.jpg' don't MD5-hash to
the same value:

  $ echo -n 'Foo.jpg' | md5
  0682c25948fa1a2e600dbd7248d6205c

  $ echo -n 'FoO.jpg' | md5
  4ddd48ea9e3c52d2fea89e8a46c348f7

So one would be stored under /0/06 and the other under /4/4d by default, and
there's no conflict.


You could have a hash collision on the first two digits, but it should be rare
to have both a case collision *and* a partial hash collision...

One could force conflicts by disabling the hash subdirectories, though.



Note that the worst possible case is probably a few broken files on a Windows
or OS X server. Copy the installation over to Linux/Unix and no new problems
should develop...

-- 
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

Reply via email to