Skip to content

Commit

Permalink
fix jwks endpoint issue during server startup.
Browse files Browse the repository at this point in the history
add auto generated swagger changes.
  • Loading branch information
dushaniw committed Feb 16, 2024
1 parent e2c30a0 commit 62cf705
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6841,11 +6841,13 @@ public static void logAuditMessage(String entityType, String entityInfo, String
jsonObject.put("typ", entityType);
jsonObject.put("action", action);
jsonObject.put("performedBy", performedBy);
try {
JSONObject entityInfoJson = (JSONObject) new JSONParser().parse(entityInfo);
jsonObject.put("info", entityInfoJson);
} catch (ParseException ignored) { // if entityInfo cannot be parsed as json, log as a simple string
jsonObject.put("info", entityInfo);
if (entityInfo != null && !StringUtils.isBlank(entityInfo)) {
try {
JSONObject entityInfoJson = (JSONObject) new JSONParser().parse(entityInfo);
jsonObject.put("info", entityInfoJson);
} catch (ParseException ignored) { // if entityInfo cannot be parsed as json, log as a simple string
jsonObject.put("info", entityInfo);
}
}
audit.info(StringEscapeUtils.unescapeJava(jsonObject.toString()));
}
Expand Down

0 comments on commit 62cf705

Please sign in to comment.