Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Update dependency com.github.hmcts:sscs-common to v4.24.0 (#431)
Browse files Browse the repository at this point in the history
* Update dependency com.github.hmcts:sscs-common to v4.24.0

* update DwpState

* io.netty vunerability fix

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: TeaWithLucas <18538046+TeaWithLucas@users.noreply.github.com>
  • Loading branch information
renovate[bot] and TeaWithLucas authored Jan 3, 2023
1 parent 42bd22c commit ac2b33a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
25 changes: 24 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ dependencies {
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.10'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.10'

implementation group: 'com.github.hmcts', name: 'sscs-common', version: '4.23.0'
implementation group: 'com.github.hmcts', name: 'sscs-common', version: '4.24.0'

implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.36'

Expand Down Expand Up @@ -420,6 +420,29 @@ dependencyManagement {
dependencySet(group: 'org.yaml', version: '1.33') {
entry 'snakeyaml'
}

// CVE-2022-41881, CVE-2022-41915
dependencySet(group: 'io.netty', version: '4.1.86.Final') {
entry 'netty-buffer'
entry 'netty-common'
entry 'netty-codec'
entry 'netty-codec-http'
entry 'netty-codec-http2'
entry 'netty-codec-socks'
entry 'netty-codec-dns'
entry 'netty-handler'
entry 'netty-handler-proxy'
entry 'netty-resolver'
entry 'netty-resolver-dns'
entry 'netty-resolver-dns-native-macos'
entry 'netty-resolver-dns-classes-macos'
entry 'netty-transport'
entry 'netty-transport-native-epoll'
entry 'netty-transport-native-kqueue'
entry 'netty-transport-native-unix-common'
entry 'netty-transport-classes-kqueue'
entry 'netty-transport-classes-epoll'
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void processEventMessage(HmcMessage hmcMessage)

DwpState resolvedState = hearingUpdateService.resolveDwpState(hmcStatus);
if (resolvedState != null) {
caseData.setDwpState(resolvedState.getId());
caseData.setDwpState(resolvedState);
}
if (isHearingUpdated(hmcStatus, hearingResponse)) {
hearingUpdateService.updateHearing(hearingResponse, caseData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void testReturnedStatusShouldUpdateDwpStateForCaseData() throws Exception {
processHmcMessageService.processEventMessage(hmcMessage);

// then
assertThat(sscsCaseDetails.getData().getDwpState()).isEqualTo(DwpState.HEARING_DATE_ISSUED.getId());
assertThat(sscsCaseDetails.getData().getDwpState()).isEqualTo(DwpState.HEARING_DATE_ISSUED);
}

@Test
Expand Down

0 comments on commit ac2b33a

Please sign in to comment.