Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating multiple analysis fields with one API call only shows one in audit trail #4720

Open
2 tasks done
taladar opened this issue Mar 5, 2025 · 2 comments · May be fixed by #4750
Open
2 tasks done

Updating multiple analysis fields with one API call only shows one in audit trail #4720

taladar opened this issue Mar 5, 2025 · 2 comments · May be fixed by #4750
Labels
defect Something isn't working in triage

Comments

@taladar
Copy link

taladar commented Mar 5, 2025

Current Behavior

All fields are updated to the correct values but only the Analysis field is mentioned in the audit trail when I set analysis, analysis response and analysis details at the same time via a single API call.

Steps to Reproduce

  1. Call the update analysis API call with multiple fields set
  2. Observe audit trail only showing a single field

Expected Behavior

Audit trail should show all modified fields, either as a single combined entry or as separate entries the way it does when changing the settings in the web UI.

Dependency-Track Version

4.12.6

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

13.20

Browser

Mozilla Firefox

Checklist

@taladar taladar added defect Something isn't working in triage labels Mar 5, 2025
@stohrendorf
Copy link
Contributor

stohrendorf commented Mar 5, 2025

Related: #2683 #3470

@stohrendorf
Copy link
Contributor

The probable issue is https://github.com/DependencyTrack/dependency-track/blob/master/src/main/java/org/dependencytrack/resources/v1/AnalysisResource.java#L184-L197, which only logs a single change in case of an initial analysis.

stohrendorf added a commit to stohrendorf/dependency-track that referenced this issue Mar 12, 2025
@stohrendorf stohrendorf linked a pull request Mar 12, 2025 that will close this issue
3 tasks
stohrendorf added a commit to stohrendorf/dependency-track that referenced this issue Mar 13, 2025
stohrendorf added a commit to stohrendorf/dependency-track that referenced this issue Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working in triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants