Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIXED] Fix unsupported MQTT topic characters error message #4903

Conversation

tomhollingworth
Copy link

Previously ' ' and '.' were not supported for MQTT topics until #4243 brought in support for '.'. However the error message for unsupported characters appears to not have been updated. This simply updates the error message.

Had an example of a MQTT client trying to connect to spBv1.0/Field Devices and the error message indicated that both '.' and ' ' were unsupported which was misleading as only ' ' is unsupported.

Signed-off-by: Tom Hollingworth tom.hollingworth@spruiktec.com

Previously ' ' and '.' were not supported for MQTT topics until nats-io#4243 brought in support for '.'. However the error message for unsupported characters appears to not have been updated. This simply updates the error message.

Had an example of a MQTT client trying to publish to `spBv1.0/Field Devices/Some Device/Some Topic` and the error message indicated that both '.' and ' ' were unsupported which was misleading as only ' ' is unsupported.
@tomhollingworth tomhollingworth requested a review from a team as a code owner December 19, 2023 21:29
@tomhollingworth tomhollingworth changed the title [FIXED] Fix unsupported MQTT characters error message [FIXED] Fix unsupported MQTT topic characters error message Dec 19, 2023
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks

@derekcollison derekcollison merged commit 3d8a017 into nats-io:main Dec 19, 2023
2 checks passed
wallyqs added a commit that referenced this pull request Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants