Skip to content

Effective license of BSD-3-Clause AND BSD-3-Clause #8714

@tsteenbe

Description

@tsteenbe

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

Metadata

Metadata

Assignees

Labels

spdxIssues related to SPDX interoperability

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions