-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Observed/problematic behavior
Hanger returns the wrong sha256 hash for a version download. In this case the version with ID 16420 of the ViaBackwards project reports the wrong sha256 hash for the paper download.
This is reported by the Hangar API https://hangar.papermc.io/api/v1/projects/viabackwards/versions
fileInfo
name "ViaBackwards-5.4.0-SNAPSHOT.jar"
sizeBytes 1267263
sha256Hash "003acf73c17fcafb63264425cd20f1cd34eb52ea7ce19a5bce1f649f0286e63a"
externalUrl null
downloadUrl "https://hangarcdn.papermc.io/plugins/ViaVersion/ViaBackwards/versions/5.4.0-SNAPSHOT%2B428/PAPER/ViaBackwards-5.4.0-SNAPSHOT.jar"
The reported hash for the download url https://hangarcdn.papermc.io/plugins/ViaVersion/ViaBackwards/versions/5.4.0-SNAPSHOT%2B428/PAPER/ViaBackwards-5.4.0-SNAPSHOT.jar by Hangar is 003acf73c17fcafb63264425cd20f1cd34eb52ea7ce19a5bce1f649f0286e63a but the actual hash is 0fff5b4b8de7a6cd1304fc2cb441feeef3b883ac97f6908005899a410b5a6336
Expected behavior
Correct sha256 hash is returned by Hangar, which should be 0fff5b4b8de7a6cd1304fc2cb441feeef3b883ac97f6908005899a410b5a6336
Steps to reproduce
- Head to https://hangar.papermc.io/api/v1/projects/viabackwards/versions
- Look for version 16420
- Download the paper jar of this version
- Calculate checksum of downloaded file
sha256sum ViaBackwards-5.4.0-SNAPSHOT.jar - Observe mismatch with the sha256 hash reported by Hangar
Other
Haven't checked all versions, but older versions report the correct hash. This is also the first time I have encountered this problem.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status