Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dataStatus information indicating that the ComponentInfo data (i.e. scancode) did not detect any license. #228

Closed
ohecker opened this issue Feb 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ohecker
Copy link
Member

ohecker commented Feb 1, 2024

The dataStatus field qualifies the quality of the license/IP information provided by a ComponentInfoProvider(i.e. the Scancode data). See https://github.com/devonfw/solicitor/blob/master/documentation/master-solicitor.asciidoc#1135-datastatus-values-of-the-scancode-integration .

In the case that this information exists but does not contain any detected licenses Solicitor falls back to use the license information ("RawLicense") initially read from the package metadata via the Reader. This is reported via a log message and in the tracing information but not in the dataStatus (

} else {
LOG.info(LogMessages.COMPONENTINFO_NO_LICENSES.msg(),
(ac.getGroupId() != null ? ac.getGroupId() + "/" : "") + ac.getArtifactId() + "/" + ac.getVersion());
for (RawLicense rl : ac.getRawLicenses()) {
String trace = rl.getTrace() + System.lineSeparator()
+ "+ ComponentInfo available but without license information - keeping data from Reader";
rl.setTrace(trace);
}
).

To be able to better sport those cases a specific dataStatus prefix should be used:
NL:<detailStatus>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant