findMBeanServer not executed in a AccessController.doPrivileged throws
SecurityException if a security manager is enabled
-------------------------------------------------------------------------------------------------------------------------
Key: AMQ-3048
URL: https://issues.apache.org/activemq/browse/AMQ-3048
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.4.1
Reporter: Trejkaz
The broker's ManagementContext makes a call to findMBeanServer() which fails in
secure environments even if ActiveMQ has the permissions required to find an
MBean server, because a doPrivileged() block has not been wrapped around the
call.
The code should either use a doPrivileged() block (if the JMX server is
important), or catch the SecurityException and not have a JMX server, if it
doesn't want one.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.