phpmyadmin/website

Hashes do not match files (CDN CACHE ?)

Closed this issue · 1 comments

Run

<?php

$exts = ["zip", "tar.gz", "tar.xz"];

$hashes = ["sha256", "sha1"];

$variants = ["all-languages", "source", "english"];

$downloads = [
	'https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-' => 'phpMyAdmin-5.0+snapshot',
	'https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-' => 'phpMyAdmin-4.8+snapshot'
];

$i = 0;

foreach ($downloads as $url => $version) {
	foreach ($variants as $variant) {
		foreach ($exts as $ext) {
			$i++;
			$link = "$url$variant.$ext";
			echo $link.PHP_EOL;
			file_put_contents("${version}-$variant.$ext", file_get_contents($link));
			foreach ($hashes as $hash) {
				file_put_contents("${version}-$variant.$ext.$hash", file_get_contents($link.".$hash"));
				echo $link.".$hash".PHP_EOL;
				$i++;
			}
		}
	}
}

echo "Count: $i".PHP_EOL;

Check hashes

sha256sum --check ./*.sha256
sha1sum --check ./*.sha1

Output

SHA1 (Réussi=success, Échec=failed)

phpMyAdmin-4.8+snapshot-all-languages.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-all-languages.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-all-languages.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-english.tar.gz: Réussi
phpMyAdmin-4.8+snapshot-english.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-english.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-source.tar.gz: Réussi
phpMyAdmin-4.8+snapshot-source.tar.xz: Réussi
phpMyAdmin-4.8+snapshot-source.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-all-languages.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-all-languages.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-all-languages.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-english.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-english.tar.xz: Réussi
phpMyAdmin-5.0+snapshot-english.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-source.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-source.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-source.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas

SHA256 (Réussi=success, Échec=failed)

phpMyAdmin-4.8+snapshot-all-languages.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-all-languages.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-all-languages.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-english.tar.gz: Réussi
phpMyAdmin-4.8+snapshot-english.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-english.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-4.8+snapshot-source.tar.gz: Réussi
phpMyAdmin-4.8+snapshot-source.tar.xz: Réussi
phpMyAdmin-4.8+snapshot-source.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-all-languages.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-all-languages.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-all-languages.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-english.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-english.tar.xz: Réussi
phpMyAdmin-5.0+snapshot-english.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-source.tar.gz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-source.tar.xz: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas
phpMyAdmin-5.0+snapshot-source.zip: Échec
sha1sum: Attention : 1 somme de contrôle ne correspond pas

CURL caches

curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-all-languages.zip.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-all-languages.zip.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-all-languages.tar.gz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-all-languages.tar.gz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-all-languages.tar.xz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-all-languages.tar.xz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-source.zip.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-source.zip.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-source.tar.gz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-source.tar.gz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-source.tar.xz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-source.tar.xz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-english.zip.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-english.zip.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-english.tar.gz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-english.tar.gz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-english.tar.xz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-5.0+snapshot-english.tar.xz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-all-languages.zip.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-all-languages.zip.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-all-languages.tar.gz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-all-languages.tar.gz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-all-languages.tar.xz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-all-languages.tar.xz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-source.zip.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-source.zip.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-source.tar.gz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-source.tar.gz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-source.tar.xz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-source.tar.xz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-english.zip.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-english.zip.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-english.tar.gz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-english.tar.gz.sha1  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-english.tar.xz.sha256  | grep 'last-modified: '
curl -s -I https://files.phpmyadmin.net/snapshots/phpMyAdmin-4.8+snapshot-english.tar.xz.sha1  | grep 'last-modified: '

All modified files before today are not okay.

nijel commented

The sha* files are not purged from the cdn cache...