From 7304e0cf5fd7053961c41dd50aa8711014c53f3b Mon Sep 17 00:00:00 2001 From: joana-fb <132680682+joana-fb@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:08:35 +0000 Subject: [PATCH] [BISERVER-15135] - Username with prefix or suffix blank spaces on Login page triggers UsernameNotFound Exception, but session is created --- assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp b/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp index d68b76bb92a..4a6c9db4f13 100644 --- a/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp +++ b/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp @@ -350,6 +350,9 @@ var userState = ''; <% } %> + let trimmedValue = $("#login #j_username").val().trim(); + $("#login #j_username").val(trimmedValue); + jQuery.ajax({ type: "POST", url: "j_spring_security_check",