Skip to content

Package requires SHA1 hash but spec does not require it #182

@njv299

Description

@njv299

The SPDX spec for the 'Package Checksum' field does not specify that it must be SHA1, but the current Package class validation logic requires it to be.

This is the relevant part of the spec:
image

And this is the section of the code which is doing improper validation (from package.py):
image

In my opinion the spec itself should also be relaxed with respect to File Checksum requiring SHA1, but that is an argument for a different venue. I'm guessing that this bug is due to copy-paste from the File class, which rightfully checks for a SHA1 hash.

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