DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.69k stars 578 forks source link

Component Reports "No Data Available" #321

Closed msymons closed 1 year ago

msymons commented 5 years ago

Issue Type:

Current Behavior:

Seen in Dependency-Track v3.4.0, multiple components are reporting "No Data Available" and a blank "Last Measurement".

The consequence of this is that the Components screen displays null in Vulnerabilities Column.

Steps to Reproduce (if defect):

View Components Screen, with all columns displayed. Some components display null value for "Vulnerabilities" but are otherwise OK (correct license, etc).

Componenrts-Screen-No-Data

Click on one component that has null vulnerabilities. The component will report "No Data Available" (The screenshot below truncates the "N") with the "Last Measurement" having no value. I checked that the components in my testing were all used in at least 1 project.

On clicking "Refresh" and reloading the page, there is now a timestamp for "Last Measurement" and the Overview is now displaying data, as shown here:

individual-component-no-data

If one now returns to "Components Screen" and uses "Refresh" then the component will now display a value in "Vulnerabilities" (even though it may be "0").

Expected Behavior:

Environment:

msymons commented 5 years ago

This defect has been previously reported as #297 (although that was with DT v3.5 snapshot)

stevespringett commented 5 years ago

Couple questions...

Dependency-Check scanner enabled/disabled?

Do the components in question have a Package URL? If so, provide an example.

msymons commented 5 years ago

Dependency-Check was formerly used but has been disabled on our system for the last couple of months. The scanners used are OSS Index, with npm re-enabled this morning after upgrade to v3.4.1

The components do all have a purl:

pkg:npm/acorn@5.7.3
pkg:maven/org.antlr/antlr4-runtime@4.7.1?type=jar

I do not know when antlr 4.7.1 was first added to the system (ie, before or after switching off dependency-check), but I do see that 4.7.2 is listed.... and I know it's more recent than our switch to BOMs (because I did the PR that updated it!) and this version does NOT have the "No data" issue.

As previously reported, doing a manual refresh button click for these two components fixed the problem.

stevespringett commented 5 years ago

In cases where a purl is not defined and dependencycheck is disabled, having no data is expected behavior for vulnerabilities. However, I'm unable to replicate this issue. I created a BOM with the components you're having trouble with and the components were imported and vulnerability and outdated analysis produced expected results.

At a minimum, vulnerability analysis takes place every 24 hours and metric updates takes place every hour.

stevespringett commented 5 years ago

Although I have not been able to reproduce this issue, I'm including the same optimizations for component and project metrics as I did for dependency metrics in #267 as the issue might be related.

msymons commented 1 year ago

Given that the optimizations mentioned above were released in DT 3.5, and that there have been no further mentions of problems, I think that it is safe to close this issue.

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.