Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-274

Make ActiveMQThreadFactory instantiation running within doPrivileged block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            istudens Ivo Studensky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: