From 7b4af2a1656908aa4b839ba8f841a4cb717d9ed4 Mon Sep 17 00:00:00 2001 From: Virtually Nick Date: Mon, 14 Oct 2024 11:16:06 -0400 Subject: [PATCH] GUACAMOLE-1239: Fix issue with records added by non-JDBC connections. --- .../guacamole/auth/jdbc/HistoryTrackingConnection.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/HistoryTrackingConnection.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/HistoryTrackingConnection.java index cdd50e3bc0..c8aea85362 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/HistoryTrackingConnection.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/HistoryTrackingConnection.java @@ -56,12 +56,6 @@ public class HistoryTrackingConnection extends DelegatingConnection { * established connections. */ private final ConnectionRecordMapper connectionRecordMapper; - - /** - * The Guacamole server environment. - */ - @Inject - private JDBCEnvironment environment; /** * Creates a new HistoryConnection that wraps the given connection, @@ -106,7 +100,7 @@ public GuacamoleTunnel connect(GuacamoleClientInformation info, // Insert the connection history record to mark the start of this connection connectionRecordMapper.insert(connectionRecordModel, - environment.getCaseSensitiveUsernames()); + currentUser.isCaseSensitive()); // Include history record UUID as token ModeledConnectionRecord modeledRecord = new ModeledConnectionRecord(connectionRecordModel);