sha256 and md5 checksums incorrect on https://download.moodle.org/releases/supported/

sha256 and md5 checksums incorrect on https://download.moodle.org/releases/supported/

by Jens Kullin -
Number of replies: 2
Dear all,


SHA256(moodle-latest-401.zip)= bd69250615e4f9b75f71a786dbc7287268a0072b5d61d5a22b13f7db462fd47a
SHA256(moodle-latest-401.tgz)= 3a6a474d240623f372cbde4c1e9b78c7098cb2df663deacb02b3df0b05960a0e
SHA256(moodle-4.1.3.tgz)= 24c2be9c681e06bc82e88f5c8350c3e7680819c3cc009ff1671ac2e1ad51e4fb
SHA256(moodle-4.1.3.zip)= f503f691f531feb6df3d019b68085011fbb210c56de2511bd65302f8e748d2eb

differ from the downloaded ones
4c5e7e37c6180670e6393637bd6ffe70e4660909f28f5d2bbb8f7b8cbea19618  moodle-latest-401.tgz
8ff269d718ae7b7976def77f02c8d4f3a71a59e008cdead4064c91b000b79b3b  moodle-latest-401.zip
f3632db616f971bb205313630cc582027d64744c4637b1b296393dbf066f010e  moodle-4.1.3.tgz
340ef4558e799ca314adf61840593092c120bf4227b6a8539db6e9bbf7c765be  moodle-4.1.3.zip

Same issue for md5 checksums sad
Jens
Average of ratings: -
In reply to Jens Kullin

Re: sha256 and md5 checksums incorrect on https://download.moodle.org/releases/supported/

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

The URLs https://download.moodle.org/download.php/stableXYZ/… are HTML pages containing JavaScript which starts the download. Is it possible you're calculating the checksum of that page instead of the expected zip or tar file?

If I download the files with:

wget https://download.moodle.org/download.php/direct/stable401/moodle-latest-401.tgz \
  https://download.moodle.org/download.php/direct/stable401/moodle-latest-401.zip \
  https://download.moodle.org/download.php/direct/stable401/moodle-4.1.3.tgz \
  https://download.moodle.org/download.php/direct/stable401/moodle-4.1.3.zip

And then calculate the checksums:

sha256sum moodle-latest-401.tgz moodle-latest-401.zip moodle-4.1.3.tgz moodle-4.1.3.zip

I get the published values as expected:

3a6a474d240623f372cbde4c1e9b78c7098cb2df663deacb02b3df0b05960a0e  moodle-latest-401.tgz
bd69250615e4f9b75f71a786dbc7287268a0072b5d61d5a22b13f7db462fd47a  moodle-latest-401.zip
24c2be9c681e06bc82e88f5c8350c3e7680819c3cc009ff1671ac2e1ad51e4fb  moodle-4.1.3.tgz
f503f691f531feb6df3d019b68085011fbb210c56de2511bd65302f8e748d2eb  moodle-4.1.3.zip
In reply to Leon Stringer

Re: sha256 and md5 checksums incorrect on https://download.moodle.org/releases/supported/

by Jens Kullin -
Thank you, Leon, you're right.

Jens