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

When distribution contentType and File contentType mismatch, silently fails #421

Open
ssssarah opened this issue Aug 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ssssarah
Copy link
Contributor

ssssarah commented Aug 8, 2024

This is a bit particular, but if a resource indicates having a distribution, but the distribution's contentType doesn't match the File's and the content type that is provided to forge.download has been inspired by the distribution's wrong contentType, forge will loop over all files' actual metadata, find nothing and download nothing.

https://github.com/BlueBrain/nexus-forge/blob/master/kgforge/core/archetypes/read_only_store.py#L132

@ssssarah ssssarah added the bug Something isn't working label Aug 8, 2024
@ssssarah ssssarah changed the title Downloading a file when distribution contentType and File contentType mismatch silently fails When distribution contentType and File contentType mismatch, silently fails Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant