This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 01a4b0f Add missing string
01a4b0f is described below
commit 01a4b0fc8845a1ac655904042144204989238dec
Author: remm <[email protected]>
AuthorDate: Tue Jul 6 14:46:58 2021 +0200
Add missing string
---
java/org/apache/catalina/realm/DataSourceRealm.java | 2 +-
java/org/apache/catalina/realm/LocalStrings.properties | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/realm/DataSourceRealm.java
b/java/org/apache/catalina/realm/DataSourceRealm.java
index 3739f2b..3fd90a2 100644
--- a/java/org/apache/catalina/realm/DataSourceRealm.java
+++ b/java/org/apache/catalina/realm/DataSourceRealm.java
@@ -360,7 +360,7 @@ public class DataSourceRealm extends RealmBase {
dbConnection.commit();
}
} catch (SQLException e) {
- containerLog.error("Exception committing connection before
closing:", e);
+ containerLog.error(sm.getString("dataSourceRealm.commit"), e);
}
// Close this database connection, and log any errors
diff --git a/java/org/apache/catalina/realm/LocalStrings.properties
b/java/org/apache/catalina/realm/LocalStrings.properties
index 20398fa..9cb35cc 100644
--- a/java/org/apache/catalina/realm/LocalStrings.properties
+++ b/java/org/apache/catalina/realm/LocalStrings.properties
@@ -28,6 +28,7 @@ credentialHandler.invalidStoredCredential=The invalid stored
credential string [
dataSourceRealm.authenticateFailure=Username [{0}] NOT successfully
authenticated
dataSourceRealm.authenticateSuccess=Username [{0}] successfully authenticated
dataSourceRealm.close=Exception closing database connection
+dataSourceRealm.commit=Exception committing connection before closing
dataSourceRealm.exception=Exception performing authentication
dataSourceRealm.getPassword.exception=Exception retrieving password for [{0}]
dataSourceRealm.getRoles.exception=Exception retrieving roles for [{0}]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]