-
Notifications
You must be signed in to change notification settings - Fork 326
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
AOSD-Reporter 2.1, subcomponents in the output JSON are not as specified #10082
Comments
@MNesche even after read the description again, I'm still unclear what a "subcomponent" actually is, and what defines it. Is any arbitrary set of files that happen to have the same license a subcomponent? That would seem weird, esp. as the
I'm also not sure about that. What about a license detected in a root Note that ORT actually doe snot have the concept of a "main license" of a package yet, but I've implemented something like that already for the SPDX report. |
Hi @sschuberth, thank you for your reply.
Indeed, the description is probably a bit inaccurate, but the declared license(s) should be the main license and any other finding as subcomponent, no matter where it has been found. Not sure if you're familiar with Black Duck, but there it's handled similarly. |
So, a license detected in a root Also, this still leaves the question open to me how many non-main subcomponents we should have. Just one, where the conjunction of all detected licenses is put? |
Well, guess we'd have to discuss your question about the License-file in a root with a lawyer to get a bulletproof reply ;). About the additional subcomponents, I can only reply how we made it. |
Actually, IIRC it was @LeChasseur who proposed at some ORT Community Days to introduce the concept of a "main license for a package" in ORT, which (again IIRC) explicitly included the license detected in a Also, I just files this PR to make the idea of a "main license" more prominent in ORT.
I guess that should say "any distinct license finding", right? Because in ORT, a "license finding" refers to an individual finding within a file, and a single file can have multiple findings for different licenses.
That does not sound very... standard 😉 |
Good morning & thank you for your reply,
Indeed, any distinct license finding, but any license-spdx only mentioned once as subcomponent (no duplicates). In the topic of a main license, I don't really understand what would make the difference to the "declared" license. The declared license is already part of ORT and from a user's perspective working with the Webapp as "viewer" for the ORT results, the standard view already shows that in a good way.
True, I'm always open for new ideas :D |
ORT uses the term "declared" in a more specific way: For ORT, a declared license exclusively comes from package metadata. That is, if you as a human "declare" a license as part of a |
Alright, good to know 😄 |
By extracting the existing code to a function, this prepares for reuse in order to address issue #10082. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
By extracting the existing code to a function, this prepares for reuse in order to address an issue with AOSD reports [1]. [1]: #10082 Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Describe the bug
The spec for the AOSD-format 2.1 describes the subcomponents as following:
Actually, the AOSD-reporter puts all licenses in the main subcomponent, which is wrong.
Subcomponent called "main" should be the declared license(s) only. Any additional licenses should be in an additional subcomponent.
The results of the license findings are (from v42.0.1 cause the webapp output of version 55.0.0 lacks the "detected excluded"):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This is the output, as it should be, according to the description of the spec (unnecessary fields have been removed):
Console / log output
This is the actual output in the JSON-File.
Environment
The text was updated successfully, but these errors were encountered: