Skip to content

Commit 5e61567

Browse files
authored
Merge pull request #304 from hmcts/CCD-1276-master
CCD-1276 CVE-2021-22118 in AAC Manage Case Assignment
2 parents a294a7f + eae3fd2 commit 5e61567

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

build.gradle

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
plugins {
22
id 'application'
33
id 'jacoco'
4-
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
5-
id 'org.springframework.boot' version '2.3.4.RELEASE'
4+
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
5+
id 'org.springframework.boot' version '2.4.4'
66
id 'uk.gov.hmcts.java' version '0.12.0'
77
id 'com.github.ben-manes.versions' version '0.28.0'
88
id 'com.github.spacialcircumstances.gradle-cucumber-reporting' version '0.1.23'
99
id 'org.sonarqube' version '2.8'
1010
}
1111

12-
ext['spring-security.version'] = '5.3.8.RELEASE'
12+
ext['spring-security.version'] = '5.4.5'
13+
ext['spring-framework.version'] = '5.3.7'
1314

1415
group = 'uk.gov.hmcts.reform'
1516
version = '0.0.1'
@@ -165,6 +166,9 @@ dependencyCheck {
165166
}
166167

167168
dependencyManagement {
169+
imports {
170+
mavenBom "org.springframework.cloud:spring-cloud-dependencies:2020.0.1"
171+
}
168172
dependencies {
169173
dependency group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.61'
170174
// CVE-2018-10237 - Unbounded memory allocation
@@ -239,8 +243,11 @@ configurations.all {
239243
}
240244

241245
dependencies {
246+
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '2.2.7.RELEASE'
247+
242248
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
243249
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
250+
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-bootstrap', version: '3.0.1'
244251

245252
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
246253
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation'
@@ -266,17 +273,17 @@ dependencies {
266273
implementation group: 'uk.gov.hmcts.reform', name: 'idam-client', version: '1.5.5'
267274
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-netflix-zuul', version: '2.2.3.RELEASE'
268275

269-
implementation "org.springframework.security:spring-security-web:5.3.8.RELEASE"
270-
implementation "org.springframework.security:spring-security-config:5.3.8.RELEASE"
271-
implementation "org.springframework.boot:spring-boot-starter-oauth2-client:2.3.8.RELEASE"
272-
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server:2.3.8.RELEASE"
273-
implementation "com.nimbusds:nimbus-jose-jwt:7.9"
274-
implementation "net.minidev:json-smart:2.3"
276+
implementation "org.springframework.security:spring-security-web:5.4.5"
277+
implementation "org.springframework.security:spring-security-config:5.4.5"
278+
implementation "org.springframework.boot:spring-boot-starter-oauth2-client:2.4.5"
279+
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server:2.4.5"
275280
implementation "io.github.openfeign:feign-httpclient:11.0"
281+
testCompile 'io.github.openfeign:feign-jackson:10.7.0'
282+
testCompile group: 'io.github.openfeign.form', name: 'feign-form', version: '3.8.0'
283+
compile group: 'io.github.openfeign.form', name: 'feign-form-spring', version: '3.8.0'
276284
implementation "com.github.ben-manes.caffeine:caffeine:2.7.0"
277285
implementation "org.apache.httpcomponents:httpclient:4.5.13"
278286

279-
280287
implementation group: 'javax.inject', name: 'javax.inject', version: '1'
281288
implementation group: 'org.modelmapper', name: 'modelmapper', version: '2.3.7'
282289
implementation 'uk.gov.service.notify:notifications-java-client:3.15.1-RELEASE'

src/test/java/uk/gov/hmcts/reform/managecase/api/controller/NoticeOfChangeControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static class BaseMvcTest {
147147
@Nested
148148
@DisplayName("GET /noc/noc-questions")
149149
@SuppressWarnings({"PMD.AvoidDuplicateLiterals", "PMD.JUnitTestsShouldIncludeAssert", "PMD.ExcessiveImports"})
150-
class GetNoticeOfChangeQuestions extends BaseMvcTest {
150+
class GetNoticeOfChangeQuestions {
151151

152152
@Nested
153153
@DisplayName("GET /noc/noc-questions")

0 commit comments

Comments
 (0)