Skip to content

Make digest_sha1 work for Valkyrie as well as Wings/Fedora#409

Merged
maxkadel merged 2 commits into
mainfrom
fix_sha_algorithm_mismatch_in_valkyrie
Jun 16, 2026
Merged

Make digest_sha1 work for Valkyrie as well as Wings/Fedora#409
maxkadel merged 2 commits into
mainfrom
fix_sha_algorithm_mismatch_in_valkyrie

Conversation

@maxkadel

Copy link
Copy Markdown
Member

Story

Valkyrie uses the MD5 algorithm for digest_ssim which doesn't have the beginning sha1: - this reformulation works for either algorithm

Expected Behavior Before Changes

For applications using Valkyrie, iiif manifests using an EXTERNAL_IIIF_URL did not include links to the info.json, because digest_sha1 raises an error for digests without algorithm prefixes - the manifest could not create the correct link.

Expected Behavior After Changes

Applications using Valkyrie with an EXTERNAL_IIIF_URL can create valid iiif manifests using Valkyrie-generated digests.

Notes

This also adds the option to add a prefix to the external_latest_file_id - this allows for differentiating S3 paths by environment.

maxkadel added 2 commits June 16, 2026 15:59
Valkyrie uses the MD5 algorithm for  `digest_ssim` which doesn't have the beginning `sha1:` - this reformulation works for either algorithm
@maxkadel maxkadel added bug Something isn't working contribute back code needs to be contributed to open source labels Jun 16, 2026
@maxkadel maxkadel merged commit d09ac11 into main Jun 16, 2026
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working contribute back code needs to be contributed to open source minor-ver

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants