Bridge config does not support spaces in topic names
Even though they should not, topics can include spaces. Bridges configuration does not support this.
https://github.com/eclipse/mosquitto/blob/master/src/conf.c#L1551
Should use conf_parse_string?
The topic directive has several parameters. How can we distinguish between a delimiter and a character of space?
Allow escaped space? "%20" or "\ " or "+", or quoted names.
Fails backward compatibility.
You should not be backwards compatible with a bug
I think it's not a bug, but a current spec of mosquitto.
The bridge topic of mosquitto cannot include spaces implicitly, because there are some delimiters in the directive (bridge) topic. The bridge feature purely depends on each implementation of broker because there is no description of bridge in the standard. Therefore, I'm afraid I think your insist is a little rough.
We have two options:
- Express this spec of the directive topic.
- Add new directive you wish to support a bridge topics include spaces and keep backward compatibility.
Could it be possible to accept optional single quotes around the topic name in the bridge configuration?
Accepting all these examples?:
topic 'example/topic/with / spaces/#' in 0 "" "" topic example/topic/without/space/# in 0 "" "" topic 'example/topic/without/space/but/with/quotes/#' in 0 "" ""