Skip to content

SHA256 checksum mismatch for downloadΒ #1489

@Darthmineboy

Description

@Darthmineboy

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

  1. Head to https://hangar.papermc.io/api/v1/projects/viabackwards/versions
  2. Look for version 16420
  3. Download the paper jar of this version
  4. Calculate checksum of downloaded file sha256sum ViaBackwards-5.4.0-SNAPSHOT.jar
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions