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
The use of a Topic type which handles validation at construction only is the way to go, IMO!
agree, but topic/filter needs to be validated only once!
in rumqttc, when we call publish / subscribe.
in rumqttd, when publish/subscribe packet is received and being handled.
So we have to think on pros/cons of using Topic. also, we just need to add some more checks like length and null byte in validate_topic fn and this should resolve the issue as well right?
Expected Behavior
Publishing or Subscribing to an empty-string-topic should throw an error.
Current Behavior
Allows the usage of empty string as topic.
References
Topic semantic and usage
There is also a size limit and a null-character rule which I think is also not checked for.
The text was updated successfully, but these errors were encountered: