[Mediawiki-api] Does wikipedia use different methods to compute the hash part of an image path?

OQ overlordq at gmail.com
Mon Dec 5 23:31:37 UTC 2011


On Mon, Dec 5, 2011 at 5:25 PM, Tommy Chheng <tommy.chheng at gmail.com> wrote:
> Most of the time, the function works correctly but on a few cases, it
> is incorrect:
>
> For "Stewie_Griffin.png", I get 2/26/Stewie_Griffin.png but the real
> one is 0/02/Stewie_Griffin.png
>
> Any ideas why the hashing scheme doesn't work sometimes?

Haven't used Java in a while, but make sure you're computing the right string.


brent at brent-desktop:~/pass$ echo -n "Stewie_Griffin.png" | md5sum
026fdc3cd32e81686456d875e668b9f6  -



More information about the Mediawiki-api mailing list