ort
ort copied to clipboard
Effective license of `BSD-3-Clause AND BSD-3-Clause`
ORT's LicenseResolver does not seem to be capable of resolving of SPDX expression where left and right side of an AND are the same
To Reproduce
This license-choice-bug.zip contains all ORT results and reports for the test project I created from real world ORT scan to create a test case.
Steps to reproduce the behavior:
- Set up orthw on your machine
- Download this evaluation-result.json
- Run
mkdir license-choice-bug && license-choice-bug - Initialize orthw with the directory using
orthw init file://${PWD}/evaluation-result.json - Generate WebApp report using
orthw report-webappand expandMaven:jakarta.activation:jakarta.activation-api:2.1.2in the Table tab.
Expected behavior
ORT results webapp report where the effective license for Maven:jakarta.activation:jakarta.activation-api:2.1.2 is show as just BSD-3-Clause
Environment
- ORT version: 22.6.0-036.sha.56bc621
- Java version: JDK 11.0.22+7, running under Java 11.0.22.
- OS: Mac OS X
Agreed with @oss-review-toolkit/core-devs that we always want to simplify AND expressions like this; maybe some post-processing of license choices is required here.