Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate datapackage.json checksums against Zenodo checksums #404

Open
e-belfer opened this issue Aug 9, 2024 · 0 comments
Open

Validate datapackage.json checksums against Zenodo checksums #404

e-belfer opened this issue Aug 9, 2024 · 0 comments
Labels

Comments

@e-belfer
Copy link
Member

e-belfer commented Aug 9, 2024

To catch files that have incorrectly uploaded to Zenodo, we should add a validation to AbstractDatasetArchiver.validate_dataset() that compares the checksum for each file reported in the datapackage.json (generated based on the local file) and the checksum reported for the same file when getting the record from Zenodo (see, e.g., https://zenodo.org/api/records/11408171).

If these are not the same, this is a way to catch incomplete/corrupted file uploads, which should produce a validation failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant