Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.11.1
-
None
-
None
-
OSX 10.10
https://github.com/ckrey/MQTT-Client-Framework testcases
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.