diff --git a/Jenkinsfile_CNP b/Jenkinsfile_CNP index 37daecae1f..87badd227f 100644 --- a/Jenkinsfile_CNP +++ b/Jenkinsfile_CNP @@ -1,6 +1,6 @@ #!groovy -@Library("Infrastructure") +@Library("Infrastructure@2.4.5") import uk.gov.hmcts.contino.AppPipelineDsl import uk.gov.hmcts.contino.GithubAPI diff --git a/build.gradle b/build.gradle index b896608274..04deec4380 100644 --- a/build.gradle +++ b/build.gradle @@ -252,10 +252,10 @@ tasks.register('yarnInstall', Exec) { } tasks.register('runE2eTests', Exec) { - dependsOn yarnInstall - workingDir = file("${project.projectDir}/src/e2eTest") - def suite = System.getenv('E2E_SUITE') ?: 'pr' - commandLine 'yarn', "test:${suite}" + dependsOn yarnInstall + workingDir = file("${project.projectDir}/src/e2eTest") + def suite = System.getenv('E2E_SUITE') ?: 'pr' + commandLine 'yarn', "test:${suite}" } tasks.register('contract', Test) { diff --git a/config/owasp/suppressions.xml b/config/owasp/suppressions.xml index bac56b8542..08419c6268 100644 --- a/config/owasp/suppressions.xml +++ b/config/owasp/suppressions.xml @@ -1,6 +1,10 @@ + + + CVE-2026-54399 + CVE-2026-54428 CVE-2026-54399 @@ -20,6 +24,12 @@ CVE-2020-29582 CVE-2026-53914 + + + CVE-2026-54512 + CVE-2026-54513 + CVE-2026-54514 + CVE-2026-54515 @@ -29,6 +39,21 @@ CVE-2025-7962 + + + CVE-2026-54516 + CVE-2026-54517 + CVE-2026-54518 + + + + CVE-2020-29582 + CVE-2026-53914 + + + + ^pkg:maven/org\.eclipse\.angus/angus-activation@.*$ + cpe:/a:eclipse:angus_mail diff --git a/src/main/java/uk/gov/hmcts/reform/pcs/config/JacksonConfiguration.java b/src/main/java/uk/gov/hmcts/reform/pcs/config/JacksonConfiguration.java index 6e16416580..9960069455 100644 --- a/src/main/java/uk/gov/hmcts/reform/pcs/config/JacksonConfiguration.java +++ b/src/main/java/uk/gov/hmcts/reform/pcs/config/JacksonConfiguration.java @@ -32,7 +32,8 @@ public ObjectMapper getMapper() { .configure(ACCEPT_CASE_INSENSITIVE_ENUMS, true) .enable(INFER_BUILDER_TYPE_BINDINGS) .disable(AUTO_CLOSE_JSON_CONTENT) - .defaultPropertyInclusion(JsonInclude.Value.ALL_NON_NULL) + .defaultPropertyInclusion(JsonInclude.Value.construct(JsonInclude.Include.NON_NULL, + JsonInclude.Include.NON_NULL)) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true) .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) @@ -48,7 +49,8 @@ public ObjectMapper getMapper() { public ObjectMapper draftCaseDataObjectMapper() { ObjectMapper mapper = JsonMapper.builder() .disable(AUTO_CLOSE_JSON_CONTENT) - .defaultPropertyInclusion(JsonInclude.Value.ALL_NON_NULL) + .defaultPropertyInclusion(JsonInclude.Value.construct(JsonInclude.Include.NON_NULL, + JsonInclude.Include.NON_NULL)) .addMixIn(YesOrNo.class, YesOrNoMixin.class) .addMixIn(PCSCase.class, DraftCaseDataMixIn.class) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)