This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 7d148b0c56 UserDatabase is bound under leaf name, not full path
7d148b0c56 is described below

commit 7d148b0c564d964fc65a032e18643cfa51841fa8
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 26 20:18:29 2026 +0100

    UserDatabase is bound under leaf name, not full path
---
 java/org/apache/catalina/mbeans/GlobalResourcesLifecycleListener.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/org/apache/catalina/mbeans/GlobalResourcesLifecycleListener.java 
b/java/org/apache/catalina/mbeans/GlobalResourcesLifecycleListener.java
index dd8a94adf0..28cd7caf01 100644
--- a/java/org/apache/catalina/mbeans/GlobalResourcesLifecycleListener.java
+++ b/java/org/apache/catalina/mbeans/GlobalResourcesLifecycleListener.java
@@ -283,7 +283,7 @@ public class GlobalResourcesLifecycleListener implements 
LifecycleListener {
                     destroyMBeans(name + "/", (Context) value);
                 } else if (value instanceof UserDatabase) {
                     try {
-                        MBeanUtils.destroyMBeanUserDatabase(name);
+                        MBeanUtils.destroyMBeanUserDatabase(binding.getName());
                     } catch (Exception e) {
                         
log.error(sm.getString("globalResources.userDatabaseDestroyError", name), e);
                     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to