-
Notifications
You must be signed in to change notification settings - Fork 308
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
NoticeTemplate reporter fails if no scanner archive storage is configured #3121
Comments
@mnonnenmacher can you help with this? |
If the archiver is |
Yes, exactly. I don't have (or ever had) the |
This problem would also happen if you run the scanner and reporter on different machines without configuring a remote storage. I think we should not ignore missing license files or just print a warning, as this might go unnoticed. What do you think of adding a reporter option like:
|
Ah, which probably is the default case when using the stock
Don't get me wrong, I'm fine with the reporter to fail in this case. I just believe it could do so more gracefully by showing a more user-friendly message with more background information. |
What about falling back to the "normalized" / standard license text and printing a warning if no license text is found in an archive? |
The output you posted above contains the text "see cause exception in the Java stack trace", but the Java stack trace is missing. Can you add that? Because the actual exception in
I don't like printing a warning, because you only see it if you read the logs which is something rarely done if a job succeeds. It should be a user choice, if you want the license files to be included, it should fail if the required files are not available. That's why I proposed the two options above. Maybe we should change the default template to be one that does not include license files? |
Here you go:
Doesn't the path "/tmp/ort15844618501012269741archive/license" also look odd as there is no "/" before "archive"?
When I wrote "print" I actually meant an OrtIssue in the result, with level "warning".
Maybe better
I don't think that's necessary; it was the main point for the new NOTICE generator to use the literal / unmodified license texts. User's who don't want / need this could use the summary NOTICE file, which does not require the archive, correct? |
I cannot reproduce this anymore. |
If no storage is configured to archive the found license files, then no original license texts (and copyright holders) can be obtained by the
NoticeTemplate
reporter. This currently causes the reporter to fail likebut it should probably fail more gracefully.
The text was updated successfully, but these errors were encountered: