Skip to content

Commit

Permalink
modified: checksumService
Browse files Browse the repository at this point in the history
  • Loading branch information
AssahBismarkabah committed Jan 25, 2025
1 parent 0946d57 commit 25be30a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ private void updateUser(UserRepresentation existingUser) {
patchedUser.setCredentials(userCredentials.isEmpty() ? null : userCredentials);
}

logger.debug("Existing user: {}", existingUser);
logger.debug("Patched user: {}", patchedUser);

if (!CloneUtil.deepEquals(existingUser, patchedUser, "access")) {
logger.debug("Update user '{}' in realm '{}'", userToImport.getUsername(), realmName);
userRepository.updateUser(realmName, patchedUser);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public void doImport(RealmImport realmImport) {
RealmRepresentation existingRealm = realmRepository.get(realmImport.getRealm());
Map<String, String> customAttributes = existingRealm.getAttributes();


String importChecksum = realmImport.getChecksum();
String attributeKey = getCustomAttributeKey(realmImport);
customAttributes.put(attributeKey, importChecksum);
Expand All @@ -70,7 +69,6 @@ public boolean hasToBeUpdated(RealmImport realmImport) {
}
Map<String, String> customAttributes = existingRealm.getAttributes();


String readChecksum = customAttributes.get(getCustomAttributeKey(realmImport));
if (readChecksum == null) {
return true;
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/de/adorsys/keycloak/config/util/CloneUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,6 @@ public static <S, T> boolean deepEquals(S origin, T other, String... ignoredProp
logger.trace("objects.deepEquals: ret: {} | origin: {} | other: {} | ignoredProperties: {}",
ret, originJsonNode, otherJsonNode, ignoredProperties
);
if (!ret) {
logger.debug("Differences detected between origin and other:");
originJsonNode.fieldNames().forEachRemaining(fieldName -> {
JsonNode originValue = originJsonNode.get(fieldName);
JsonNode otherValue = otherJsonNode.get(fieldName);
if (!Objects.equals(originValue, otherValue)) {
logger.debug("Field '{}' is different: origin = {}, other = {}", fieldName, originValue, otherValue);
}
});
}

return ret;
}
Expand Down

0 comments on commit 25be30a

Please sign in to comment.