You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2012/08/07 23:25:09 UTC
[jira] [Closed] (AMQ-3048) findMBeanServer not executed in a
AccessController.doPrivileged throws SecurityException if a security
manager is enabled
[ https://issues.apache.org/jira/browse/AMQ-3048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish closed AMQ-3048.
-----------------------------
Resolution: Won't Fix
> findMBeanServer not executed in a AccessController.doPrivileged throws SecurityException if a security manager is enabled
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-3048
> URL: https://issues.apache.org/jira/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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira