From 1ce98bc50c15dbc5840cf6949cc86cf130a07c16 Mon Sep 17 00:00:00 2001 From: joana-fb <132680682+joana-fb@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:54:18 +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, 1 insertion(+), 2 deletions(-) diff --git a/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp b/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp index 4a6c9db4f1..49d4da7d9d 100644 --- a/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp +++ b/assemblies/pentaho-war/src/main/webapp/jsp/PUCLogin.jsp @@ -350,8 +350,7 @@ var userState = ''; <% } %> - let trimmedValue = $("#login #j_username").val().trim(); - $("#login #j_username").val(trimmedValue); + $("#j_username").val($("#j_username").val().trim()); jQuery.ajax({ type: "POST",