From afa6e31d367ed90912a01dae279b0261ae737a74 Mon Sep 17 00:00:00 2001 From: Vlastimil Elias Date: Mon, 9 Aug 2021 17:03:30 +0200 Subject: [PATCH] [KEYCLOAK-19006] User Profile: Patched handling of the "whitespace-only" texts in pattern and length validators --- .../validate/AbstractStringValidator.java | 4 +- .../validate/validators/LengthValidator.java | 6 +++ .../validate/BuiltinValidatorsTest.java | 41 ++++++++++++------- 3 files changed, 34 insertions(+), 17 deletions(-) diff --git a/server-spi-private/src/main/java/org/keycloak/validate/AbstractStringValidator.java b/server-spi-private/src/main/java/org/keycloak/validate/AbstractStringValidator.java index cc835d9368..deb320468a 100644 --- a/server-spi-private/src/main/java/org/keycloak/validate/AbstractStringValidator.java +++ b/server-spi-private/src/main/java/org/keycloak/validate/AbstractStringValidator.java @@ -16,8 +16,6 @@ */ package org.keycloak.validate; -import org.keycloak.utils.StringUtil; - /** * Base class for String value format validators. Functionality covered in this base class: *