New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct handling of special MQTT headers in MQTT 5 #1758
Comments
I believe, the same should apply to correlation-id, content-type and reply-to headers in consumed messages. |
I've found comment about known MQTT headers in outgoing message stating that they weren't removed because it would break functionality for users who already depend on it: /*
* Actually it would be correct to also include MqttHeader.MQTT_TOPIC,
* MqttHeader.MQTT_QOS and MqttHeader.MQTT_RETAIN in the set of the known
* MQTT header names because they are already dedicated properties in the
* MQTT Publish.
* However, as the named headers were included in user properties
* up to the present, there might be users who rely on their presence.
* Excluding the headers from user properties would then break
* functionality.
*/ @thjaeckle, should feature toggle be introduced, e.g., ditto.connectivity.feature.mqtt-known-headers-in-user-properties-enabled? |
Oh, yes .. indeed - I vaguely remember discussing that some time ago. We have already some feature toggles defined here - so I would prefer to add the feature toggle in the same way. ditto/internal/utils/config/src/main/resources/ditto-devops.conf Lines 10 to 23 in 2c94cc2
Here is how feature toggles are evaluated currently: |
@dimabarbul would you like to provide this for Ditto 3.4.0 (which we want to release in the next 1-2 weeks)? |
Yes, I would love to. |
MQTT 5 has some special headers: mqtt.topic, mqtt.qos, mqtt.retain.
The text was updated successfully, but these errors were encountered: