Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a41f4df
Initial commit of migrated source code
ynegi Jun 19, 2026
bfe2e6c
Initial commit of migrated source code
ynegi Jun 19, 2026
0c6024f
Merge remote-tracking branch 'origin/copy-code-20260619_165531' into …
ynegi Jun 19, 2026
6b7c1ef
Merge pull request #3 from hmcts/copy-code-20260619_165531
ynegi Jun 22, 2026
dbdc496
fix integration tests
ynegi Jun 23, 2026
7aac287
Merge pull request #9 from hmcts/fwe-lpt-2197-fix-integration-test
arcadiushmcts Jun 23, 2026
511ea1f
json-smart issue
arcadius Jun 23, 2026
5fcc008
Merge pull request #10 from hmcts/tmp/fix-json-smart-issues
arcadiushmcts Jun 23, 2026
7a9b5c4
New 17.103.171-fwe-SNAPSHOT
Jun 23, 2026
2381d3e
json-smart issue fix 02
arcadius Jun 23, 2026
fad42eb
Merge pull request #11 from hmcts/tmp/json-smart--fix-02
arcadiushmcts Jun 23, 2026
0a6983f
New 17.103.172-fwe-SNAPSHOT
Jun 23, 2026
160c377
Merge remote-tracking branch 'origin/main' into team/fwe-lpt-2197
arcadius Jun 25, 2026
d998756
updating poms for 17.103.177-SNAPSHOT development
Jun 25, 2026
527cc0e
updating develop poms to master versions to avoid merge conflicts
Jun 25, 2026
6a9f22d
Merge branch 'dev/release' into main
Jun 25, 2026
989628f
Updating develop poms back to pre merge state
Jun 25, 2026
4a2a68b
Merge remote-tracking branch 'origin/main' into team/fwe-lpt-2197
arcadius Jun 30, 2026
a88ca15
pom version update
arcadius Jun 30, 2026
d9e7a3c
New 17.104.3-SNAPSHOT
Jun 30, 2026
66947f8
Merge pull request #15 from hmcts/team/fwe-lpt-2197
kumarvinay23 Jul 2, 2026
a57bea8
updating poms for 17.104.3 branch with snapshot versions
Jul 2, 2026
44e8f67
updating poms for 17.104.4-SNAPSHOT development
Jul 2, 2026
d4c630d
updating poms for branch'dev/release-17.104.3' with non-snapshot vers…
Jul 2, 2026
008ac93
Merge branch 'dev/release-17.104.3' into dev/release
Jul 2, 2026
9a226c6
updating develop poms to master versions to avoid merge conflicts
Jul 2, 2026
f3c847e
Merge branch 'dev/release' into main
Jul 2, 2026
1019e75
Updating develop poms back to pre merge state
Jul 2, 2026
86a7dcd
Merge branch 'main' into team/pasthearings
ozturkmenb Jul 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion listing-command/listing-command-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>listing-command</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-command/listing-command-handler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-command</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-command/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-domain/listing-domain-aggregate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-domain</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-domain/listing-domain-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-domain</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-domain/listing-domain-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-domain</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-domain/listing-domain-xhibit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-domain</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-domain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-parent</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>

<artifactId>listing-domain</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion listing-event-sources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-event/listing-event-listener/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-event</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-event/listing-event-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-event</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-parent</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-healthchecks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-integration-test-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-integration-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void setUp() {
setupProgressionNotesStubs();
setupUsersGroupPermissionsForApplicationTypeStub();
databaseCleaner.cleanEventStoreTables(CONTEXT_NAME);
databaseCleaner.cleanViewStoreTables(CONTEXT_NAME, "stream_status",
databaseCleaner.cleanViewStoreTables(CONTEXT_NAME, "stream_status","processed_event",
"stream_buffer", "hearing", "hearing_days", "listing_notes", "cache_refdata_courtroom", "court_list_publish_status", "published_court_list");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
@SuppressWarnings({"squid:S1607"})
public class RangeSearchQueryForCourtCalendarIT extends AbstractIT {

private static final String CONTEXT_NAME = "listing";
private static final Map<UUID, String> COURT_ROOMS = new LinkedHashMap<>() {{
put(fromString("1d0199f8-8812-48a2-b13c-837e1c03ff19"), "Courtroom 01");
put(fromString("18982e9c-2475-36a4-a852-09ab720acfc9"), "Courtroom 03");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.hamcrest.Matchers.is;
import static uk.gov.moj.cpp.listing.helper.SearchHearingHelper.getHearingFilter;
import static uk.gov.moj.cpp.listing.helper.SearchHearingHelper.pollForHearing;
import static uk.gov.moj.cpp.listing.steps.UpdateHearingSteps.DEFAULT_DURATION_HOURS_MINS;
Expand Down Expand Up @@ -46,10 +46,17 @@ public void whenHearingIsUpdatedForListingForWeekCommencingDate() {

request = prepareJsonForUpdatedHearingData(updatedHearingData);

final Response response = restClient.postCommand(updateHearingUrl, MEDIA_TYPE_UPDATE_HEARING_FOR_LISTING,
request, getLoggedInHeader());

assertThat(response.getStatus(), equalTo(SC_ACCEPTED));
try (Response response = restClient.postCommand(updateHearingUrl, MEDIA_TYPE_UPDATE_HEARING_FOR_LISTING, request, getLoggedInHeader())) {

String responseBody = "";
try {
responseBody = response.readEntity(String.class);
} catch (IllegalStateException e) {
//no-op in case of no response
}
assertThat(format("Post returned not expected status code with body: %s", responseBody),
response.getStatus(), is(SC_ACCEPTED));
}
}

public void verifyHearingUpdatedWithWeekCommencingDateAndUnallocatedWhenQueryingFromAPI() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.gov.moj.cpp.listing.utils;

import static java.nio.charset.Charset.defaultCharset;
import static javax.json.Json.createReader;
import static uk.gov.justice.services.messaging.JsonObjects.createReader;
import static org.apache.commons.io.FileUtils.readFileToString;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsNull.notNullValue;
Expand Down
2 changes: 1 addition & 1 deletion listing-json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>

<artifactId>listing-json</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion listing-performance-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-parent</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>

<artifactId>listing-performance-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion listing-query/listing-query-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-query</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>

<artifactId>listing-query-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import javax.inject.Inject;
import uk.gov.justice.services.messaging.JsonObjects;

import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObject;
Expand Down Expand Up @@ -373,7 +372,7 @@ private JsonArrayBuilder buildApplicationsWithEnrichedPayload(final JsonEnvelope

if (appDetails.isPresent()) {
final CourtApplication courtApplicationObj = jsonObjectToObjectConverter.convert(appDetails.get().getJsonObject("courtApplication"), CourtApplication.class);
final JsonObjectBuilder appBuilder = Json.createObjectBuilder();
final JsonObjectBuilder appBuilder = JsonObjects.createObjectBuilder();
application.forEach(appBuilder::add);
appBuilder.add("applicationTypeCode", courtApplicationObj.getType().getCode());
applicationsBuilder.add(appBuilder.build());
Expand All @@ -389,7 +388,7 @@ private JsonArrayBuilder buildApplicationsWithEnrichedPayload(final JsonEnvelope
}

private static JsonObject buildHearingPayloadWithUpdatedApplications(final JsonObject hearing, final JsonArrayBuilder applicationsBuilder) {
final JsonObjectBuilder hearingBuilder = Json.createObjectBuilder();
final JsonObjectBuilder hearingBuilder = JsonObjects.createObjectBuilder();
hearing.forEach((key, value) -> {
if (!COURT_APPLICATIONS.equals(key)) {
hearingBuilder.add(key, value);
Expand All @@ -400,7 +399,7 @@ private static JsonObject buildHearingPayloadWithUpdatedApplications(final JsonO
}

private static @NonNull JsonObjectBuilder buildResponsePayloadWithUpdatedHearing(final JsonObject payload, final JsonArrayBuilder hearingsBuilder) {
final JsonObjectBuilder payloadBuilder = Json.createObjectBuilder();
final JsonObjectBuilder payloadBuilder = JsonObjects.createObjectBuilder();
payload.forEach((key, value) -> {
if (!HEARINGS.equals(key)) {
payloadBuilder.add(key, value);
Expand Down
2 changes: 1 addition & 1 deletion listing-query/listing-query-view/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-query</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>

<artifactId>listing-query-view</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.gov.moj.cpp.listing.query.view.service;

import static java.util.UUID.randomUUID;
import static javax.json.Json.createObjectBuilder;
import static uk.gov.justice.services.messaging.JsonObjects.createObjectBuilder;
import static org.codehaus.groovy.runtime.InvokerHelper.asList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasSize;
Expand Down
2 changes: 1 addition & 1 deletion listing-query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-parent</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-parent</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-viewstore/listing-viewstore-liquibase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-viewstore</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-viewstore/listing-viewstore-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-viewstore</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion listing-viewstore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>listing-parent</artifactId>
<groupId>uk.gov.moj.cpp.listing</groupId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
25 changes: 22 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<parent>
<groupId>uk.gov.moj.cpp.common</groupId>
<artifactId>service-parent-pom</artifactId>
<version>17.103.8</version>
<version>17.104.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>


<groupId>uk.gov.moj.cpp.listing</groupId>
<artifactId>listing-parent</artifactId>
<version>17.103.181-PAST-SNAPSHOT</version>
<version>17.104.4-PAST-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Listing Context Microservice Parent</name>
Expand All @@ -29,7 +29,7 @@
<sonar.report.export.path>sonar-report.json</sonar.report.export.path>
<sonar.scm.provider>git</sonar.scm.provider>
<mvn.site.url>file://${project.build.directory}/site</mvn.site.url>
<coredomain.version>17.103.13</coredomain.version>
<coredomain.version>17.104.3</coredomain.version>
<referencedata.version>17.103.133</referencedata.version>
<documentgenerator-client.version>1.0.4</documentgenerator-client.version>
<sardine.version>5.7</sardine.version>
Expand Down Expand Up @@ -99,6 +99,25 @@

<dependencyManagement>
<dependencies>
<!--
Pin json-smart to 2.5.2. The 17.104 framework line pulls json-path 2.9.0 -> json-smart
2.4.9 transitively (compile scope in listing-event-processor, test scope elsewhere via
RestPoller). json-smart 2.4.9 has a regression in its depth guard: the nesting counter
is not decremented correctly, so the hardcoded MAX_DEPTH=400 effectively caps the total
number of objects/arrays in a document rather than actual nesting depth. Legitimate
large payloads (~64KB+) then fail with "Malicious payload, having non natural depths"
(InvalidJsonException), breaking any JsonPath evaluation over a big document — e.g.
RangeSearchQueryForCourtCalendarIT, whose court-centre verify response exceeds 64KB once
it holds 5 hearings — and a latent production risk in the event processor. 2.5.x fixes
the counter (correct depth accounting) while keeping the guard. 2.5.2 verified against
the failing payload and compatible with json-path 2.9.0.
https://github.com/aws-solutions/distributed-load-testing-on-aws/issues/146
-->
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>domain-test-dsl</artifactId>
Expand Down
Loading