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

ActiveMQDestination.createDestination() should prevent empty destination name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.9.0
    • 5.10.1, 5.11.0
    • None
    • None
    • 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
          Benjamin P. O'Day

        Activity

          People

            tabish Timothy A. Bish
            boday Benjamin P. O'Day
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: