This is an automated email from the ASF dual-hosted git repository.
markt 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 45ef0bbe3b Trivial optimisation. Also fixes highly theoretical
concurrency issue.
45ef0bbe3b is described below
commit 45ef0bbe3bdfbdfb6b21ad99ed5ab3751b6d485f
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Sep 17 07:37:08 2025 +0100
Trivial optimisation. Also fixes highly theoretical concurrency issue.
---
java/org/apache/catalina/realm/UserDatabaseRealm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/realm/UserDatabaseRealm.java
b/java/org/apache/catalina/realm/UserDatabaseRealm.java
index b1b50434f8..1484402945 100644
--- a/java/org/apache/catalina/realm/UserDatabaseRealm.java
+++ b/java/org/apache/catalina/realm/UserDatabaseRealm.java
@@ -219,7 +219,7 @@ public class UserDatabaseRealm extends RealmBase {
containerLog.error(sm.getString("userDatabaseRealm.noNamingContext"));
return null;
}
- context = getServer().getGlobalNamingContext();
+ context = server.getGlobalNamingContext();
}
database = (UserDatabase) context.lookup(resourceName);
} catch (Throwable t) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]