Skip to content

fix end URL and added extra logging - #132

Merged
arcadiushmcts merged 5 commits into
team/cct-1981from
fix/extra-logging
Aug 13, 2026
Merged

fix end URL and added extra logging#132
arcadiushmcts merged 5 commits into
team/cct-1981from
fix/extra-logging

Conversation

@ynegi

@ynegi ynegi commented Aug 10, 2026

Copy link
Copy Markdown

Jira link

https://tools.hmcts.net/jira/browse/LPT-2348

See PROJ-XXXXXX

Change description

Testing done

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

@ynegi
ynegi requested a review from arcadiushmcts August 10, 2026 15:19
@ynegi
ynegi requested a review from a team as a code owner August 10, 2026 15:19
@ynegi
ynegi requested review from dawidstrozak and laxmi-mk and removed request for a team August 10, 2026 15:19
ynegi added 2 commits August 11, 2026 13:00
…a-logging

# Conflicts:
#	sjp-event/sjp-event-processor/src/main/java/uk/gov/moj/cpp/sjp/event/processor/helper/HttpConnectionHelper.java
#	sjp-event/sjp-event-processor/src/main/java/uk/gov/moj/cpp/sjp/event/processor/service/CourtListPublishingService.java
public class CourtListPublishingServiceStub {

private static final String PUBLISH_COURT_LIST_URL = "/api/court-list-publish/sjp/publishCourtList";
private static final String PUBLISH_COURT_LIST_URL = "/courtlistpublishing-service/api/court-list-publish/sjp/publishCourtList";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that /courtlistpublishing-service/ is already in the host @Value(key = "COURT_LIST_PUBLISHING_SERVICE_URL", defaultValue = "http://localhost:8080/courtlistpublishing-service") . Would it cause a prob?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WireMock is the server listening on localhost:8080 — it strips scheme/host/port itself and only matches on the path portion of whatever request actually arrives. The path it receives is /courtlistpublishing-service/api/court-list-publish/sjp/publishCourtList, which is exactly what PUBLISH_COURT_LIST_URL equals now:

"/courtlistpublishing-service/api/court-list-publish/sjp/publishCourtList"

ynegi added 2 commits August 11, 2026 13:43
…a-logging

# Conflicts:
#	sjp-event/sjp-event-processor/src/main/java/uk/gov/moj/cpp/sjp/event/processor/helper/HttpConnectionHelper.java
#	sjp-event/sjp-event-processor/src/main/java/uk/gov/moj/cpp/sjp/event/processor/service/CourtListPublishingService.java
@cpp-github-management

Copy link
Copy Markdown

Passed

@arcadiushmcts
arcadiushmcts merged commit 42ea5c0 into team/cct-1981 Aug 13, 2026
3 checks passed
@arcadiushmcts
arcadiushmcts deleted the fix/extra-logging branch August 13, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants