diff --git a/charts/am-org-role-mapping-service/Chart.yaml b/charts/am-org-role-mapping-service/Chart.yaml
index b6c10f852..a78b2693e 100644
--- a/charts/am-org-role-mapping-service/Chart.yaml
+++ b/charts/am-org-role-mapping-service/Chart.yaml
@@ -3,12 +3,12 @@ appVersion: "1.0"
description: A Helm chart for AM Organisation Role Mapping Service
name: am-org-role-mapping-service
home: https://github.com/hmcts/am-org-role-mapping-service
-version: 0.0.51
+version: 0.0.52
maintainers:
- name: Access Management Team
dependencies:
- name: java
- version: 4.2.0
+ version: 5.0.0
repository: 'https://hmctspublic.azurecr.io/helm/v1/repo/'
- name: servicebus
version: 1.0.4
diff --git a/config/owasp/suppressions.xml b/config/owasp/suppressions.xml
index 064b8c786..dfc1b8f95 100644
--- a/config/owasp/suppressions.xml
+++ b/config/owasp/suppressions.xml
@@ -17,4 +17,8 @@
https://tools.hmcts.net/jira/browse/AM-2952 plexus
CVE-2022-4245
+
+ https://tools.hmcts.net/jira/browse/AM-2968 netty
+ CVE-2023-4586
+
diff --git a/src/functionalTest/resources/features/F-004/S-031.td.json b/src/functionalTest/resources/features/F-004/S-031.td.json
index 20b1a55ee..e3ddf7b75 100644
--- a/src/functionalTest/resources/features/F-004/S-031.td.json
+++ b/src/functionalTest/resources/features/F-004/S-031.td.json
@@ -65,7 +65,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
- "workTypes" : "pre_hearing_work,hearing_work,post_hearing_work,decision_making_work,routine_work,priority"
+ "workTypes" : "pre_hearing,hearing_work,post_hearing,decision_making_work,routine_work,priority"
},
"authorisations" : "[[ANYTHING_PRESENT]]"
}
diff --git a/src/functionalTest/resources/features/F-004/S-032.td.json b/src/functionalTest/resources/features/F-004/S-032.td.json
index 657e105d6..0ba42dbd9 100644
--- a/src/functionalTest/resources/features/F-004/S-032.td.json
+++ b/src/functionalTest/resources/features/F-004/S-032.td.json
@@ -43,7 +43,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
- "workTypes" : "pre_hearing_work,hearing_work,post_hearing_work,decision_making_work,routine_work,priority"
+ "workTypes" : "pre_hearing,hearing_work,post_hearing,decision_making_work,routine_work,priority"
},
"authorisations" : "[[ANYTHING_PRESENT]]"
},
@@ -66,7 +66,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
- "workTypes" : "pre_hearing_work,hearing_work,post_hearing_work,decision_making_work,routine_work,priority"
+ "workTypes" : "pre_hearing,hearing_work,post_hearing,decision_making_work,routine_work,priority"
},
"authorisations" : "[[ANYTHING_PRESENT]]"
},
diff --git a/src/functionalTest/resources/features/F-005/S-041.td.json b/src/functionalTest/resources/features/F-005/S-041.td.json
index ac4c0d288..a38e60185 100644
--- a/src/functionalTest/resources/features/F-005/S-041.td.json
+++ b/src/functionalTest/resources/features/F-005/S-041.td.json
@@ -36,7 +36,7 @@
"primaryLocation": "21153",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "applications,hearing_work,routine_work,priority"
+ "workTypes": "applications,hearing_work,routine_work,priority,pre_hearing"
}
},
{
diff --git a/src/functionalTest/resources/features/F-005/S-042.td.json b/src/functionalTest/resources/features/F-005/S-042.td.json
index 3a20b13f3..4a510f2fb 100644
--- a/src/functionalTest/resources/features/F-005/S-042.td.json
+++ b/src/functionalTest/resources/features/F-005/S-042.td.json
@@ -36,7 +36,7 @@
"primaryLocation": "21153",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"
+ "workTypes": "pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"
}
},
{
diff --git a/src/functionalTest/resources/features/F-005/S-043.td.json b/src/functionalTest/resources/features/F-005/S-043.td.json
index fa9e5a13c..e331b3390 100644
--- a/src/functionalTest/resources/features/F-005/S-043.td.json
+++ b/src/functionalTest/resources/features/F-005/S-043.td.json
@@ -172,7 +172,7 @@
"primaryLocation": "271588",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority"
+ "workTypes": "pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority"
}
},
{
@@ -209,7 +209,7 @@
"primaryLocation": "271588",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"
+ "workTypes": "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"
}
},
{
diff --git a/src/functionalTest/resources/features/F-005/S-044.td.json b/src/functionalTest/resources/features/F-005/S-044.td.json
index fbad5d2cc..68bb79b03 100644
--- a/src/functionalTest/resources/features/F-005/S-044.td.json
+++ b/src/functionalTest/resources/features/F-005/S-044.td.json
@@ -119,7 +119,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" : "[[ANYTHING_PRESENT]]",
- "workTypes" : "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"
+ "workTypes" : "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"
}
}, {
"id" : "[[ANYTHING_PRESENT]]",
@@ -137,7 +137,7 @@
"primaryLocation" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "SSCS",
"region" :"[[ANYTHING_PRESENT]]",
- "workTypes" : "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work"
+ "workTypes" : "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work"
}
} ]
}
diff --git a/src/functionalTest/resources/features/F-006/S-051.td.json b/src/functionalTest/resources/features/F-006/S-051.td.json
index 53272a35e..4ee1b66a6 100644
--- a/src/functionalTest/resources/features/F-006/S-051.td.json
+++ b/src/functionalTest/resources/features/F-006/S-051.td.json
@@ -33,7 +33,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work",
+ "workTypes": "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work",
"substantive" : "Y"
}
},
@@ -52,7 +52,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "pre_hearing_work,post_hearing_work,applications,hearing_work,routine_work,priority,decision_making_work",
+ "workTypes": "pre_hearing,post_hearing,applications,hearing_work,routine_work,priority,decision_making_work",
"substantive" : "Y"
}
}
diff --git a/src/functionalTest/resources/features/F-006/S-052.td.json b/src/functionalTest/resources/features/F-006/S-052.td.json
index 180ad8282..876784a8e 100644
--- a/src/functionalTest/resources/features/F-006/S-052.td.json
+++ b/src/functionalTest/resources/features/F-006/S-052.td.json
@@ -33,7 +33,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "pre_hearing_work,post_hearing_work,decision_making_work,applications,hearing_work,routine_work,priority",
+ "workTypes": "pre_hearing,post_hearing,decision_making_work,applications,hearing_work,routine_work,priority",
"substantive" : "Y"
}
}
diff --git a/src/functionalTest/resources/features/F-006/S-053.td.json b/src/functionalTest/resources/features/F-006/S-053.td.json
index b0cc7d8e4..fd54d58ce 100644
--- a/src/functionalTest/resources/features/F-006/S-053.td.json
+++ b/src/functionalTest/resources/features/F-006/S-053.td.json
@@ -33,7 +33,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "applications,hearing_work,routine_work,priority",
+ "workTypes": "applications,hearing_work,routine_work,priority,pre_hearing",
"substantive" : "Y"
}
},
@@ -52,7 +52,7 @@
"primaryLocation": "[[ANYTHING_PRESENT]]",
"jurisdiction": "SSCS",
"region" : "2",
- "workTypes": "applications,hearing_work,routine_work,priority",
+ "workTypes": "applications,hearing_work,routine_work,priority,pre_hearing",
"substantive" : "Y"
}
}
diff --git a/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/InvalidRequest.java b/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/InvalidRequest.java
index 0ae2acc71..20148badb 100644
--- a/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/InvalidRequest.java
+++ b/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/InvalidRequest.java
@@ -7,4 +7,8 @@ public class InvalidRequest extends RuntimeException {
public InvalidRequest(String message) {
super(message);
}
+
+ public InvalidRequest(String message, Throwable cause) {
+ super(message, cause);
+ }
}
diff --git a/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/UnprocessableEntityException.java b/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/UnprocessableEntityException.java
index bd12bbdb5..954b95e98 100644
--- a/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/UnprocessableEntityException.java
+++ b/src/main/java/uk/gov/hmcts/reform/orgrolemapping/controller/advice/exception/UnprocessableEntityException.java
@@ -8,8 +8,7 @@ public class UnprocessableEntityException extends RuntimeException {
private static final long serialVersionUID = 7L;
- public UnprocessableEntityException(String message) {
+ public UnprocessableEntityException(String message) {
super(message);
-
}
}
diff --git a/src/main/java/uk/gov/hmcts/reform/orgrolemapping/domain/service/BulkAssignmentOrchestrator.java b/src/main/java/uk/gov/hmcts/reform/orgrolemapping/domain/service/BulkAssignmentOrchestrator.java
index ef5c9aec7..048f896d2 100644
--- a/src/main/java/uk/gov/hmcts/reform/orgrolemapping/domain/service/BulkAssignmentOrchestrator.java
+++ b/src/main/java/uk/gov/hmcts/reform/orgrolemapping/domain/service/BulkAssignmentOrchestrator.java
@@ -40,7 +40,8 @@ public ResponseEntity