-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue with redirect for v2 images #24
Comments
The redirect code is not on the versioned endpoint, perhaps we should add it. In the meantime simply switching from archivelab to archive is enough to get the redirect and add the filename: https://iiif.archive.org/iiif/img-8664_202009/info.json (it's currently redirecting to the domain with .prod. in it, but that is a separate issue) |
Perfect thank you! |
I can look at the issue with the v2 manifest, it's probably the same issue as #16 |
It looks like we are missing a CORS header in the redirect:
Which is stopping this from working: https://iiif.gdmrdigital.com/openseadragon/index.html?image=https://iiif.archive.org/iiif/img-8664_202009/info.json |
Ah of course - we removed the CORS headers from nginx due to there being issues with duplicates created by Cantaloupe. There is some code in the Python app which adds them manually to responses that come through We also already have Flask-CORS setup, but it is enabled only if there is a config key: https://github.com/internetarchive/iiif/blob/main/iiify/app.py#L19 and it looks like the default is False (https://github.com/internetarchive/iiif/blob/main/iiify/configs/__init__.py#L44), so I think we can fix this easily in one of two ways:
|
Great now works on the test instnace: |
I'm just looking at updating the iiif training to use the new IIIF service and I noticed the following IIIF image URL isn't working:
https://iiif.archivelab.org/iiif/img-8664_202009/info.json
To get it to work you need the ID plus the name of the filename:
https://iiif.archive.org/image/iiif/2/img-8664_202009%2FIMG_8664.jpg/info.json
This image is included in one of the tests:
iiif/tests/test_cantaloupe_resolver.py
Line 6 in 96ce835
so the resolver does resolve it. Actually it looks like this manifest doesn't show either:
https://iiif.archive.org/iiif/2/img-8664_202009/manifest.json
but the v3 does:
https://iiif.archive.org/iiif/3/img-8664_202009/manifest.json
The text was updated successfully, but these errors were encountered: