GUACAMOLE-641: Ensure MyBatis "expectedConnectionTypeCode" is generated and matches valid database connections.

This commit is contained in:
Michael Jumper
2021-06-21 14:44:09 -07:00
parent 6ef951cd61
commit eab80688cc

View File

@@ -80,6 +80,13 @@ public class DynamicallyAuthenticatedDataSource extends PooledDataSource {
});
// Force recalculation of expectedConnectionTypeCode. The
// PooledDataSource constructor accepting a single UnpooledDataSource
// will otherwise leave this value uninitialized, resulting in all
// connections failing to pass sanity checks and never being returned
// to the pool.
super.forceCloseAll();
}
@Override