ort icon indicating copy to clipboard operation
ort copied to clipboard

Effective license of `BSD-3-Clause AND BSD-3-Clause`

Open tsteenbe opened this issue 1 year ago • 1 comments

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 ort-license-choice-bug

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:

  1. Set up orthw on your machine
  2. Download this evaluation-result.json
  3. Run mkdir license-choice-bug && license-choice-bug
  4. Initialize orthw with the directory using orthw init file://${PWD}/evaluation-result.json
  5. Generate WebApp report using orthw report-webapp and expand Maven:jakarta.activation:jakarta.activation-api:2.1.2 in 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

tsteenbe avatar May 28 '24 20:05 tsteenbe

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.

sschuberth avatar Aug 13 '24 08:08 sschuberth