Skip to content

Commit

Permalink
GUACAMOLE-1239: Fix issue with records added by non-JDBC connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
necouchman committed Oct 14, 2024
1 parent 61f6c8c commit ba649d7
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -103,10 +97,10 @@ public GuacamoleTunnel connect(GuacamoleClientInformation info,

// Set the connection information
connectionRecordModel.setConnectionName(this.getDelegateConnection().getName());

// 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);
Expand Down

0 comments on commit ba649d7

Please sign in to comment.