DependencyTrack / DependencyTrack/dependency-track

Issues with componets comments in Projects

Open
#1,658 1 comment 0 reactions 0 assignees View on GitHub
not an issue
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### 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](https://user-images.githubusercontent.com/956840/170214228-bbb517a0-fd2e-4083-b040-fb1e1fdaddc0.png)

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

![image](https://user-images.githubusercontent.com/956840/170216502-a0797f63-fb67-473d-8db8-566fef5f509e.png)

### 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:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.