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

Destination with wildcard may not have correct policy applied

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.12.1, 5.13.0
    • 5.12.2, 5.13.1, 5.14.0
    • Broker
    • None

    Description

      When a destination is created with a wildcard, it may not have the correct policy applied.

      For example, if there are two policies:

      <policyMap>
          <policyEntries>
               <policyEntry queue="test.queue.>" memoryLimit="20mb" />
               <policyEntry queue="test.queue.a" memoryLimit="5000000"  />
           </policyEntries>
      </policyMap>
      

      and if the queue test.queue.> is created, the policy for test.queue.a will be applied to that destination instead of the test.queue.> policy.

      Some work was done on this in AMQ-5972 and that seems to have fixed most of the issues, but there is this one edge case where we need to account for what happens if a policy matches a destination exactly.

      Attachments

        Issue Links

          Activity

            People

              cshannon Christopher L. Shannon
              cshannon Christopher L. Shannon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: