Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.0
-
None
-
None
Description
At the moment, ActiveMQThreadFactory caches AccessControlContext inside of its constructor and uses it later in newThread() method invocation to create a thread inside of doPrivileged block. This leads to not enough permissions issue when a client is trying to create a new connection on a factory taken from JNDI, see https://issues.jboss.org/browse/WFLY-5166.
To fix it all the invocations of the factory constructor should run within a privileged block to get a privileged ACC to the factory. This change should be similar to how it works in WildFly right now.