dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Issues with componets comments in Projects

Open amergey opened this issue 3 years ago • 1 comments

Current Behavior:

In "Audit Vulnerabilities" tab of a project, when I set something in Comment textarea of a component, when I click on "Add Comment" the comment is erased (and lost)

There is a similar behavior for "Policy Violations tab", the comment is not erased, but does not seems persisted as textarea becomes empty if I refresh the page

Steps to Reproduce:

Try to set a comment in Audit Vulnerabilities for a component and click "Add Comment"

image

Try to set a comment in Policy Violations for a component and click "Add Comment", refresh the page

image

Expected Behavior:

The comment should be saved and displayed, not erased

Environment:

  • Dependency-Track Version: 4.5.0
  • Distribution: Docker
  • BOM Format & Version: CycloneDX 1.4
  • Database Server: Azure PostgreSQL
  • Browser: Google Chrome Version 101.0.4951.64 (Official Build) (64-bit)

Additional Details:

amergey avatar May 25 '22 08:05 amergey

The Comment textbox is not supposed to hold your comment after submission. Commenting is intended to be "fire and forget". Comments are not lost, as they're recorded in the audit trail.

For vulnerability auditing, there is a Details field that behaves differently. This is where you'd put additional analysis information that may change over time.

nscuro avatar May 25 '22 09:05 nscuro