-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Affected project in mail-notification doesn't show name #3978
Comments
Update: it seems this does not happen to all projects... It seems like it happens on projects where a new BOM is uploaded -- older projects seem to work correctly. Might be a regression in 4.11.4/5? The older projects where created with at least 4.11.3, not sure if we were already on 4.11.4 though... |
Found it! It's caused by the BOM Processing V2! When I turn it off, the mails correctly contain the actual name of the project again. All projects imported with V2 on however, are still broken -- I guess something is saved differently in the database? Unfortunately I currently have no direct access to the db to verify. |
@malice00, thanks for reporting the problem and then digging deeper to identify the culprit. I have assigned this to the 4.12 milestone because it is important that such defects be addressed before BOM Processing V2 makes the switch from being "Experimental" As an FYI, #3880 was another notification issue that only occurred when BOM Processing V2 was enabled... a defect now fixed in v4.11.5 |
The issue seems to be that BOM Processing V2 populates the Now, with that in mind, looking at the dependency-track/src/main/java/org/dependencytrack/model/Project.java Lines 573 to 588 in caaeb53
... shows that it will be shown as its PURL, if Following this trail, the affected projects in the email template end up calling the above
So, this is not really a bug, since it would have happened (I assume intentionally) before, if your projects had the That said, this should be an easy fix. And I agree, showing a PURL here makes no sense. |
See DependencyTrack#3978 (comment) for details. Fixes DependencyTrack#3978 Signed-off-by: nscuro <[email protected]>
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. |
Current Behavior
When DT sends a mail about vulnerable dependencies or new vulnerabilities, all references to this project use the purl of the root component instead of the actual project name. This is especially frustrating when this component is not unique -- in our react native apps, the gradle configuration is generated and does not contain a version, so every upload uses the 'same' component even if in DT they are configured as different projects.
The annoying thing is that the list of other affected projects actually do show the project name!
Steps to Reproduce
Expected Behavior
We expect the mail to contain the actual name configured in DT to show in both the subject and the mail body.
Dependency-Track Version
4.11.5
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
14.9
Browser
Mozilla Firefox
Checklist
The text was updated successfully, but these errors were encountered: