You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christoph Krey (JIRA)" <ji...@apache.org> on 2015/07/14 18:53:05 UTC

[jira] [Created] (AMQ-5880) AMQ does not accept long (>32kb) MQTT topic filters in SUBSCRIBE

Christoph Krey created AMQ-5880:
-----------------------------------

             Summary: AMQ does not accept long (>32kb) MQTT topic filters in SUBSCRIBE
                 Key: AMQ-5880
                 URL: https://issues.apache.org/jira/browse/AMQ-5880
             Project: ActiveMQ
          Issue Type: Bug
          Components: Apollo
    Affects Versions: 5.11.1
         Environment: OSX 10.10
https://github.com/ckrey/MQTT-Client-Framework testcases
            Reporter: Christoph Krey
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)