internetarchive / iiif

The official Internet Archive IIIF service
GNU General Public License v3.0
21 stars 4 forks source link

Enable Flask-CORS by default and update Cantaloupe default #42

Closed digitaldogsbody closed 8 months ago

digitaldogsbody commented 8 months ago

Fixes the issues with redirects of v2 images.

The v2 code is still pointing at the old archivelabs service for images, and we should probably change that at some point, but it's a separate issue.

Closes #24

digitaldogsbody commented 8 months ago

The test is failing because the example item now has is_dark set in the metadata (https://archive.org/metadata/z-2-2-18-14-9) so I will switch it out for something else!

digitaldogsbody commented 8 months ago

Test updated to use the same Text item as the v3 test.

On the v2 service / archivelabs front, I see Josh has already opened a ticket here: #26

digitaldogsbody commented 8 months ago

I've also added a little bit of code to log errors in v2 manifests, the same as we currently have for v3. This should help a little with debugging any other issues.

I've left it returning a 404 instead of a 500 afterwards, as this is the current behaviour and I didn't want to break that.