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

AMQ does not accept long (>32kb) MQTT topic filters in SUBSCRIBE

    XMLWordPrintableJSON

Details

    Description

      Trying to send topic length 32767 works
      65521, 65534, 65535 do not work

      AMQ says:
      WARN | Transport Connection to: tcp://0:0:0:0:0:0:0:1:52308 failed: java.io.IOException: Unexpected error occurred: java.lang.ArrayIndexOutOfBoundsException: -1
      WARN | Transport Connection to: tcp://0:0:0:0:0:0:0:1:52612 failed: java.io.IOException: Unexpected error occurred: java.lang.ArrayIndexOutOfBoundsException: -1
      WARN | Transport Connection to: tcp://0:0:0:0:0:0:0:1:52625 failed: java.io.IOException: Unexpected error occurred: java.lang.ArrayIndexOutOfBoundsException: -11

      MQTT spec says:
      [MQTT-4.7.3-3]
      Topic Names and Topic Filters are UTF-8 encoded strings, they MUST NOT encode to more than 65535 bytes.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            ckrey Christoph Krey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: