Fix failing tests due to jvm difference

This commit is contained in:
Grahame Grieve 2023-09-08 09:00:05 +10:00
parent 6b38a730e9
commit 307623fd05
1 changed files with 2 additions and 1 deletions

View File

@ -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));