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

License text attachment uses content type "plain/text" should be "text/plain" #385

Closed
wfhartford opened this issue Apr 1, 2024 · 0 comments · Fixed by #502
Closed

License text attachment uses content type "plain/text" should be "text/plain" #385

wfhartford opened this issue Apr 1, 2024 · 0 comments · Fixed by #502
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@wfhartford
Copy link

According to the cyclonedx specification, the default content type is "text/plain" (https://github.com/CycloneDX/specification/blob/1.5/schema/bom-1.5.schema.json#L672). This seems reasonable as "text/plain" is a common mime type (https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types). The cyclonedx core java class LicenseLoader sets the content type field to "plain/text" (https://github.com/CycloneDX/cyclonedx-core-java/blob/master/src/main/java/org/cyclonedx/util/LicenseResolver.java#L200) which is not a MIME type.

@nscuro nscuro added bug Something isn't working good first issue Good for newcomers labels Jun 18, 2024
@mr-zepol mr-zepol mentioned this issue Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants