DependencyTrack / DependencyTrack/dependency-track

Match license by URL

Open
#5,137 0 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

If I understand correctly the code at https://github.com/DependencyTrack/dependency-track/blob/6db3593337394311ca21c211cd2bd465becaf4cb/src/main/java/org/dependencytrack/tasks/BomUploadProcessingTask.java#L724 license is matched by SPDX ID or by name.

### Proposed Behavior

License names can be misspelled, matching by license URL seems more robust.
E.g. SPDX maven plugin [matches licenses by URL](https://github.com/spdx/spdx-maven-plugin/issues/180#issuecomment-2680231286)

To preserve backwards compatibility the matching by URL should be added as last attempt

### Checklist

- [x] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [x] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this enhancement was already requested

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.