Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2288

AdvisoryBroker does not set up SecurityContext so advisory message not sent on startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 5.2.0
    • 5.x
    • Broker
    • None

    Description

      AdvisoryBroker does not set up SecurityContext so advisory message not sent on startup. The AdvisoryBroker has a nowMasterBroker() method that sends an advisory message without a SecurityContext. If the authorization plugin is being used, then it fails because the user is not authenticated. It looks to me like the fix would be to add a line to that method:

      context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            david_syer Dave Syer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: