From 307623fd058d7dbd7421fdeda9e53f45cc3e2b82 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 8 Sep 2023 09:00:05 +1000 Subject: [PATCH] Fix failing tests due to jvm difference --- .../src/main/java/org/hl7/fhir/r5/elementmodel/SHCParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/SHCParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/SHCParser.java index 2f4b9c510..11acb9ed8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/SHCParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/SHCParser.java @@ -313,7 +313,8 @@ public class SHCParser extends ParserBase { try { jwks = org.hl7.fhir.utilities.json.parser.JsonParser.parseObjectFromUrl(url); } catch (Exception e) { - logError(errors, "2023-09-08", 1, 1, name, IssueType.NOTFOUND, "Unable to verify the signature, because unable to retrieve JWKS from "+url+": "+e.getMessage(), IssueSeverity.ERROR); + logError(errors, "2023-09-08", 1, 1, name, IssueType.NOTFOUND, "Unable to verify the signature, because unable to retrieve JWKS from "+url+": "+ + e.getMessage().replace("Connection refused (Connection refused)", "Connection refused"), IssueSeverity.ERROR); } if (jwks != null) { verifySignature(jwt, errors, name, iss, url, org.hl7.fhir.utilities.json.parser.JsonParser.compose(jwks));