Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple checksums per entity allowed by spec, but not supported by FIle and Package classes #185

Closed
njv299 opened this issue Jul 22, 2021 · 2 comments · Fixed by #311
Closed

Comments

@njv299
Copy link
Contributor

njv299 commented Jul 22, 2021

The SPDX spec allows for multiple checksums to be provided for Packages and Files, but the current Package and File classes only allow a single value to be specified.

See the 'Cardinality' section of the following sections of the spec:
image

image

@swinslow
Copy link
Member

Just adding a note here, from the SPDX Docfest on Sept. 16 -- looks like this issue leads to errors for valid SPDX documents if they include a FileChecksum with the mandatory SHA1, together with additional optional FileChecksums such as SHA256.

@dholth
Copy link
Contributor

dholth commented Nov 16, 2021

#197 can serialize multiple checksums. Parsing them back in is additional work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants