Skip to content

Commit 2329f3e

Browse files
committed
DTSPB-4702 pointing to BS pr-1092 for testing
1 parent 4100a08 commit 2329f3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

charts/probate-orchestrator-service/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ java:
1515
SERVICES_AUTH_PROVIDER_BASEURL: "http://rpe-service-auth-provider-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal"
1616
AUTH_IDAM_CLIENT_BASEURL: "https://idam-api.{{ .Values.global.environment }}.platform.hmcts.net"
1717
SUBMIT_SERVICE_API_URL: "http://probate-submit-service-pr-1148-java"
18-
BUSINESS_SERVICE_API_URL: "http://probate-business-service-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal"
18+
BUSINESS_SERVICE_API_URL: "http://probate-business-service-pr-1092-java/"
1919
BACK_OFFICE_API_URL: "http://probate-back-office-pr-3194-java"
2020
MAIL_JAVAMAILPROPERTIES_MAIL_SMTP_SSL_ENABLE: false
2121
MAIL_JAVAMAILPROPERTIES_MAIL_SMTP_AUTH: false

src/main/java/uk/gov/hmcts/probate/client/ResponseDecorator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import uk.gov.hmcts.reform.probate.model.client.ErrorResponse;
1010

1111
import java.io.IOException;
12+
import java.nio.charset.StandardCharsets;
1213

1314
@Slf4j
1415
public class ResponseDecorator {
@@ -27,7 +28,7 @@ public String bodyToString() {
2728
String apiError = "";
2829
try {
2930
if (this.response.body() != null) {
30-
apiError = Util.toString(this.response.body().asReader());
31+
apiError = Util.toString(this.response.body().asReader(StandardCharsets.UTF_8));
3132
}
3233
} catch (IOException ignored) {
3334
log.debug("Unable to read response body");

src/main/java/uk/gov/hmcts/probate/configuration/ObjectMapperConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class ObjectMapperConfiguration {
2222
@Bean
2323
@Primary
2424
public ObjectMapper objectMapper() {
25-
ObjectMapper objectMapper = JsonMapper
25+
return JsonMapper
2626
.builder()
2727
.addModule(new JavaTimeModule())
2828
.addModule(new Jdk8Module())
@@ -32,7 +32,6 @@ public ObjectMapper objectMapper() {
3232
.disable(JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT)
3333
.build();
3434

35-
return objectMapper;
3635
}
3736

3837
}

0 commit comments

Comments
 (0)