27031 ReadOnlyAttributeUnchangedValidator logs validation errors on debug not warning

Signed-off-by: Sebastian Schuster <sebastian.schuster@bosch.io>
This commit is contained in:
Sebastian Schuster 2024-02-21 19:04:30 +01:00 committed by Pedro Igor
parent 25f2b52afd
commit 5e34769ee0

View file

@ -82,7 +82,7 @@ public class ReadOnlyAttributeUnchangedValidator implements SimpleValidator {
}
if (!isUnchanged(existingValue, value)) {
logger.warnf("Attempt to edit denied for attribute '%s' with pattern '%s' of user '%s'", key, pattern, user == null ? "new user" : user.getFirstAttribute(UserModel.USERNAME));
logger.debugf("Attempt to edit denied for attribute '%s' with pattern '%s' of user '%s'", key, pattern, user == null ? "new user" : user.getFirstAttribute(UserModel.USERNAME));
context.addError(new ValidationError(ID, key, UPDATE_READ_ONLY_ATTRIBUTES_REJECTED_MSG));
}