eclipse / paho.mqtt.testing

An Eclipse Paho project - a Python broker for testing
https://eclipse.org/paho
Other
108 stars 73 forks source link

Issue #45 - Removing invalid topic alias property on outgoing pub if it was set on incoming pub. #46

Closed jpwsutton closed 6 years ago

jpwsutton commented 6 years ago

If an incoming publish has a topic alias set, but outgoing topic aliases are not permitted, the topic alias currently slips though and is not overridden or removed when the properties are passed over to the outgoing publish. This change checks for the "TopicAlias" attribute on the incoming message properties and deletes it before being passed to the outgoing publish.

Signed-off-by: James Sutton james.sutton@uk.ibm.com

icraggs commented 6 years ago

Ah, that's what it was! Thanks.