oss-review-toolkit / ort

A suite of tools to automate software compliance checks.
https://oss-review-toolkit.org
Apache License 2.0
1.6k stars 309 forks source link

WebApp report: wrong scope #6239

Open fb33 opened 1 year ago

fb33 commented 1 year ago

Hi,

there is an issue in the table view (in webApp report) with the scope.

Context:

Actual behavior: the webapp reporter shows a wrong scope for npm dependencies. npm dependencies are associated to a gradle scope, ex: testRuntimeClasspath image

But the html reporter shows the good scope: image

Expected behavior: the webapp reporter should show the good npm scope for npm dependencies image

Complement: You can reproduce with the small project structure : https://github.com/fb33/gradle-npm-ort.git If the audit is done only on subfolder /client which contains only the npm project, the webapp report is good.

sschuberth commented 1 year ago

@fb33 I've forked your test project to https://github.com/sschuberth/gradle-npm-ort in order to make some fixes that were required to reproduce the issue, but now I can indeed confirm the issue. The analyzer-result is attached for further inspection (I don't have time right now).

sschuberth commented 1 year ago

I've verified it's also still correct in the evaluated-model (e.g. NPM::abab:2.0.6 uses scope 15 which is dependencies), so it's again a display issue in the webapp report.