-
Notifications
You must be signed in to change notification settings - Fork 723
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened:
When scanning licenses from JARs from https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy/1.14.11 or https://mvnrepository.com/artifact/commons-io/commons-io/2.16.1, Syft reports a license object like this (Syft JSON output):
{
"value": "https://www.apache.org/licenses/LICENSE-2.0.txt",
"spdxExpression": "",
"type": "declared",
"urls": [],
"locations": [
{
"path": "/commons-io-2.16.1.jar",
"accessPath": "/commons-io-2.16.1.jar",
"annotations": {
"evidence": "primary"
}
}
]
}What you expected to happen:
Syft should report Apache-2.0 for spdxExpression and a URL for the URL.
Steps to reproduce the issue:
cd $(mktemp -d)
wget https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy/1.14.11/byte-buddy-1.14.11.jar
wget https://repo1.maven.org/maven2/commons-io/commons-io/2.16.1/commons-io-2.16.1.jar
syft -o json dir:. | jq '.artifacts[] | { name: .name, licenses: .licenses }'Anything else we need to know?:
- This was reported on discourse
- is where Syft assumes that
"Bundle-License", Bundle-Licensealways points to a license name.
Environment:
- Output of
syft version:
❯ syft version
Application: syft
Version: 1.11.1
BuildDate: 2024-08-20T15:45:33Z
GitCommit: Homebrew
GitDescription: [not provided]
Platform: darwin/arm64
GoVersion: go1.23.0
Compiler: gc
- OS (e.g:
cat /etc/os-releaseor similar):
M1 Mac
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done