Skip to content

Checksum comparison should be case insensitive #142

@luis100

Description

@luis100

Version: 5.2.0
OS: Ubuntu 22.04.2 LTS

Bagit fails to load due to validation issue:

gov.loc.repository.bagit.exceptions.CorruptChecksumException: File [-redacted-.pdf] is suppose to have a [MD5] hash of [8F7EF44A45A91BF762D122E6C8A2C4A5] but was computed [8f7ef44a45a91bf762d122e6c8a2c4a5].

But the RFC states.

o The hex-encoded checksum MAY use uppercase and/or lowercase letters.

So comparison should be case insensitive.

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