You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The identifier of the rule that found this violation.
*/
valrule:String,
/**
* The identifier of the package that caused this rule violation.
*/
valpkg:Identifier?,
Since the WebApp report rewrite in #9804, the webapp report can no longer be rendered if it contains such a rule violation.
I tested this in the latest Firefox and the latest Chrome versions.
To Reproduce
Steps to reproduce the behavior:
Add a rule without a package:
ruleViolations +=RuleViolation(
"Rule without pkg",
pkg =null,
license =null,
licenseSource =null,
severity =Severity.HINT,
message ="This is a violation without a package",
howToFix ="This is a how to fix message"
)
run the evaluator using this rule, and the webapp reporter.
Open the WebApp report and see that it will only show a white screen.
Alternatively, run the webapp report on this ort-result.yml
@MarcelBochtler Have code that handles this case but forgot to add this to a data mapping that was introduced in #9804 - added small commit to #9868 which fixes this issue.
Describe the bug
Having a rule which creates a violation without specifying an affected package is allowed by the Evaluator's
RuleViolation
:ort/model/src/main/kotlin/RuleViolation.kt
Lines 24 to 33 in cc6f09d
Since the WebApp report rewrite in #9804, the webapp report can no longer be rendered if it contains such a rule violation.
I tested this in the latest Firefox and the latest Chrome versions.
To Reproduce
Steps to reproduce the behavior:
Alternatively, run the webapp report on this ort-result.yml
ort-result.yml
Changing the
pkg: null
topkg: asdf
in line 235 fixes the issue.Expected behavior
The WebApp reporter should allow
null
values for nullable properties of theRuleViolation
.The text was updated successfully, but these errors were encountered: