Skip to content

Commit

Permalink
DFR-2629: Send letter pass recipients in additional data (#1898)
Browse files Browse the repository at this point in the history
* DFR-2629: Send letter pass recipients in additional data

* DFR-2629: Send letter pass recipients in additional data

* DFR-2629: Send letter pass recipients in additional data
  • Loading branch information
rishikrsharma committed Jan 12, 2024
1 parent 86544b6 commit 9aee1d0
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 3 deletions.
154 changes: 154 additions & 0 deletions dependency-check-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,158 @@
<packageUrl regex="true">pkg:maven/org\.quartz-scheduler/quartz@.*$</packageUrl>
<cve>CVE-2023-39017</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: bcprov-jdk15on-1.70.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.bouncycastle/bcprov\-jdk15on@.*$</packageUrl>
<cve>CVE-2023-33202</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: logback-classic-1.2.10.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/ch\.qos\.logback/logback\-classic@.*$</packageUrl>
<cve>CVE-2023-6378</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: logback-core-1.2.10.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/ch\.qos\.logback/logback\-core@.*$</packageUrl>
<cve>CVE-2023-6378</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-actuator-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-actuator@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-actuator-autoconfigure-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-actuator\-autoconfigure@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-autoconfigure-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-autoconfigure@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-configuration-processor-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-configuration\-processor@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-devtools-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-devtools@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-actuator-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-actuator@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-aop-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-aop@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-data-jpa-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-data\-jpa@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-jdbc-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-jdbc@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-json-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-json@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-logging-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-logging@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-quartz-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-quartz@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-tomcat-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-tomcat@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-validation-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-validation@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: spring-boot-starter-web-2.7.17.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring\-boot\-starter\-web@.*$</packageUrl>
<cve>CVE-2023-34055</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: tomcat-embed-core-9.0.82.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.apache\.tomcat\.embed/tomcat\-embed\-core@.*$</packageUrl>
<cve>CVE-2023-46589</cve>
</suppress>
<suppress>
<notes><![CDATA[
file name: tomcat-embed-websocket-9.0.82.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.apache\.tomcat\.embed/tomcat\-embed\-websocket@.*$</packageUrl>
<cve>CVE-2023-46589</cve>
</suppress>
</suppressions>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public class BulkPrintService {
private static final String LETTER_TYPE_KEY = "letterType";
private static final String CASE_REFERENCE_NUMBER_KEY = "caseReferenceNumber";
private static final String CASE_IDENTIFIER_KEY = "caseIdentifier";
private static final String RECIPIENTS_PROD = "party";
private static final String RECIPIENTS = "recipients";

private final AuthTokenGenerator authTokenGenerator;
Expand Down Expand Up @@ -83,7 +82,7 @@ private Map<String, Object> getAdditionalData(final String caseId, final String
log.info("isSendLetterDuplicateCheckEnabled {} for caseId {}",
featureToggleService.isFeatureEnabled(Features.SEND_LETTER_RECIPIENT_CHECK), caseId);
if (featureToggleService.isFeatureEnabled(Features.SEND_LETTER_RECIPIENT_CHECK)) {
additionalData.put(RECIPIENTS_PROD, new String[]{RECIPIENTS});
additionalData.put(RECIPIENTS, new String[]{RECIPIENTS});
} else {
additionalData.put(RECIPIENTS, new String[]{"%s:%d".formatted(RECIPIENTS, System.nanoTime())});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void happyPathWhenSendLetterRecipientCheckEnabled() {
"letterType",
"caseIdentifier",
"caseReferenceNumber",
"party");
"recipients");

final String xeroxType = "DIV001";
assertThat(letterRequestCaptor.getValue(), allOf(
Expand Down

0 comments on commit 9aee1d0

Please sign in to comment.