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

ActiveMQDestination.createDestination() should prevent empty destination name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.9.0
    • Fix Version/s: 5.10.1, 5.11.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      currently you can call ActiveMQDestination createDestination("",ActiveMQDestination.QUEUE_TYPE) to create a queue with no name.

      while this doesn't seem to be an issue at first...if you are using mKahadb, ActiveMQ will fail to restart after this queue/store directory are created.

      see this post: http://activemq.2283324.n4.nabble.com/mkahadb-Failed-to-start-per-destination-persistence-adapter-for-destination-td4678754.html#a4679848

      the web console already prevents this, we should prevent this from other entry points to this API (QueueView.moveMessagesTo() from JMX in my case)...

        Attachments

        1. AMQ-5211.patch
          4 kB
          Ben O'Day

          Activity

            People

            • Assignee:
              tabish Timothy Bish
              Reporter:
              boday Ben O'Day
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: