Closed codegangsta closed 1 week ago
I think throwing validation error would be a better solution here, as spaces are troublesome, especially in NATS context. Such validation could be considered technically breaking, but at the system that already does not properly work, so not sure if that can break any proper systems.
Observed behavior
When setting
server_name
to a string with a " " in it, like "My Server", results in replies not being delivered to a requestor, when the requestor lives on the hub and the replier living on a leaf node.Expected behavior
I would expect it to work as intended or throw a validation error/warning when trying to connect as a leaf node.
Server and client version
nats-server
- 2.10.17nats-cli
- (devel)main
Host environment
MacOS on M1 Mac studio for leaf node, Synadia Cloud for hub.
Steps to reproduce
server_name
of the leaf node to "My Server" (or anything with a space on it)nats reply hello.world --echo --context leaf
nats req hello.world hihi --context hub
When the
server_name
has no spaces, I don't encounter this issue