BlueBrain / BlueBrain/nexus-forge

When distribution contentType and File contentType mismatch, silently fails

Open
#421 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
52
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.