Skip to content

Failed or interrupted downloads leaves corrupted template files. #53

Open

Description

@bpinsard

If a templateflow image download fails, the truncated file is non-zero and considered as fetched and returned in subsequent queries.

This occurred in a rare case where the truncated image silently propagated through Ants-based resampling and subsequent brain extraction, corrupting the whole pipeline.
nipreps/fmriprep#2192
It seems that it was using the default non-datalad download.

An option would be to checksum-validate each time the template is queried.

Activity

  1. oesteban commented on Dec 10, 2020

    @oesteban
    Member

    Using the datalad backend this should not occur. I'm not sure it is worth the pain maintaining a MANIFEST file with MD5 sums. Perhaps we could reconsider making datalad the default since it is more stable now?

  2. oesteban commented on Mar 15, 2024

    @oesteban
    Member

    Opening with nibabel could be an easy tradeoff between today and a decent validation of checksums.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions