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

Topic Names length limit to 200 #1441

Closed
ckrey opened this issue Oct 2, 2019 · 2 comments
Closed

Topic Names length limit to 200 #1441

ckrey opened this issue Oct 2, 2019 · 2 comments

Comments

@ckrey
Copy link

ckrey commented Oct 2, 2019

dceeb6f

The changes to src/subs.c effectively limit the length of a Topic Name to 200, not just the
number of hierarchy levels as intended.

$ mosquitto_pub -m 'topic too long' -d -q 2 -t '123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789'
Client mosq-T8zmW8VvLMUGMhpTjZ sending CONNECT
Client mosq-T8zmW8VvLMUGMhpTjZ received CONNACK (0)
Client mosq-T8zmW8VvLMUGMhpTjZ sending PUBLISH (d0, q2, r0, m1, '123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789', ... (14 bytes))
Client mosq-T8zmW8VvLMUGMhpTjZ received PUBREC (Mid: 1)
Client mosq-T8zmW8VvLMUGMhpTjZ sending PUBREL (m1)
Error: The connection was lost.
@ralight
Copy link
Contributor

ralight commented Oct 2, 2019

Thanks Christoph, that's now fixed in the fixes branch.

@ckrey
Copy link
Author

ckrey commented Oct 2, 2019

Thanks Roger for the quick fix. Tested and confirmed

@ralight ralight closed this as completed in c471dfb Dec 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants