You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MQTT - Allow new user properties to be added via message even if other props are configured in node or broker #5435
Using an MQTT Out node, if any MQTT 5 user properties are specified in the node then it should still be possible to add new properties using msg.userProperties. Currently this is not possible.
See #5360 for discussion as to whether this should be allowed. The conclusion was yes.
To be clear (to refresh my mind and help implementor)
After some discussion, it was agreed (or rather could not be argued against) that user properties set (statically) in the node should not prevent new/other properties from the msg object being added to the userProperties.
In essence this means userProperties would be merged with static properties taking precidence.
In this instance, it perhaps feels more useful to allow the msg provided properties to take precedence; you set a default in the node but allow it to be customised. I know that isn't how we handle top-level node properties, but when thinking about how this would actually be used, I think it makes sense here.
I agree, being able to override existing properties could be useful. I can't see any reason not to allow override as well as adding new ones.
Should passing null for an existing one remove the property for that transaction?
Activity
Steve-Mcl commentedon Jul 13, 2026
To be clear (to refresh my mind and help implementor)
After some discussion, it was agreed (or rather could not be argued against) that user properties set (statically) in the node should not prevent new/other properties from the msg object being added to the userProperties.
In essence this means userProperties would be merged with static properties taking precidence.
e.g.
@colinl @dceejay are we in agreement?
knolleary commentedon Jul 13, 2026
In this instance, it perhaps feels more useful to allow the msg provided properties to take precedence; you set a default in the node but allow it to be customised. I know that isn't how we handle top-level node properties, but when thinking about how this would actually be used, I think it makes sense here.
colinl commentedon Jul 13, 2026
I agree, being able to override existing properties could be useful. I can't see any reason not to allow override as well as adding new ones.
Should passing
nullfor an existing one remove the property for that transaction?