From 57ef8528825949dd2515f728e4b7dd272fd21389 Mon Sep 17 00:00:00 2001 From: Sahiba Mittal Date: Thu, 8 Aug 2024 10:11:53 +0100 Subject: [PATCH] Fix project link for new vulnerable dependency for email Co-Authored-By: Ross Murphy <77832827+2000rosser@users.noreply.github.com> --- .../notification/publisher/SendMailPublisherTest.java | 2 +- notification-publisher/src/test/resources/templates/email.peb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notification-publisher/src/test/java/org/dependencytrack/notification/publisher/SendMailPublisherTest.java b/notification-publisher/src/test/java/org/dependencytrack/notification/publisher/SendMailPublisherTest.java index ed552268d..d5cb60d14 100644 --- a/notification-publisher/src/test/java/org/dependencytrack/notification/publisher/SendMailPublisherTest.java +++ b/notification-publisher/src/test/java/org/dependencytrack/notification/publisher/SendMailPublisherTest.java @@ -542,7 +542,7 @@ public void testInformWithNewVulnerableDependencyNotification() throws Exception -------------------------------------------------------------------------------- Project: pkg:maven/org.acme/projectName@projectVersion - Project URL: https://example.com/projects/?uuid=c9c9539a-e381-4b36-ac52-6a7ab83b2c95 + Project URL: https://example.com/projects/c9c9539a-e381-4b36-ac52-6a7ab83b2c95 Component: componentName : componentVersion Component URL: https://example.com/component/?uuid=94f87321-a5d1-4c2f-b2fe-95165debebc6 diff --git a/notification-publisher/src/test/resources/templates/email.peb b/notification-publisher/src/test/resources/templates/email.peb index 93e875cb3..b688b6b02 100644 --- a/notification-publisher/src/test/resources/templates/email.peb +++ b/notification-publisher/src/test/resources/templates/email.peb @@ -17,7 +17,7 @@ Project URL: {{ baseUrl }}/projects/{{ subject.project.uuid }} Other affected projects: {{ baseUrl }}{{ subject.affectedProjectsReference.frontendUri }} {% elseif notification.group == "GROUP_NEW_VULNERABLE_DEPENDENCY" %} Project: {{ subject.project | summarize }} -Project URL: {{ baseUrl }}/projects/?uuid={{ subject.project.uuid }} +Project URL: {{ baseUrl }}/projects/{{ subject.project.uuid }} Component: {{ subject.component | summarize }} Component URL: {{ baseUrl }}/component/?uuid={{ subject.component.uuid }}