netty5/codec-mqtt
Paul Lysak 9c0c996729
MQTT: foolproof SUBSCRIBE QoS encoding (#10874)
Motivation:

If the MQTT client specifies Subscribe Options parameters only available in MQTT v5 and tries to encode the message as MQTT v3 then an invalid QoS value is encoded

Modification:

Check MQTT version when encoding SUBSCRIBE message options, if it's 3.1 or 3.1.1 - only encode QoS, skip other options.

Result:

MqttEncoder produces a valid SUBSCRIBE message even if the client has specified options not available in the current MQTT version.
2020-12-18 10:40:15 +01:00
..
src MQTT: foolproof SUBSCRIBE QoS encoding (#10874) 2020-12-18 10:40:15 +01:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-12-17 06:11:39 +00:00