Skip to content

fetch_wasabi_file doesn't check checksum after downloading new files #613

Description

@ckarwin

I noticed some strange behavior with fetch_wasabi_file when the user specifies the checksum. If the file is not present, it will download without a problem even if the downloaded file has the wrong checksum. This is because the checksum is never checked. But if you run when the file is already present, it then fails because it compares the checksum. An easy patch for this would be to compare the checksum after downloading the file for the first time, if a checksum is provided by the user.

The relevant part of the code is here:

s3.download_file(Bucket=bucket, Key=file, Filename=output)

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature / Enhancement.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions