Skip to content

Fix MQTTMatcher # wildcard not matching parent level - #953

Closed
sankalpsthakur wants to merge 1 commit into
eclipse-paho:masterfrom
sankalpsthakur:cursor/mqtt-matcher-hash-parent-84b0
Closed

sankalpsthakur wants to merge 1 commit into
eclipse-paho:masterfrom
sankalpsthakur:cursor/mqtt-matcher-hash-parent-84b0

Conversation

@sankalpsthakur

Copy link
Copy Markdown

Fixes #950

MQTT spec 4.7.1.2 requires that a multi-level wildcard includes the
parent level, so a filter of "sport/#" matches the topic "sport".
Apply the '#' match in the terminal branch of iter_match and add a
unit test covering that parent-level case.

Fixes eclipse-paho#950

Signed-off-by: Sankalp <sankalphimself@gmail.com>

Co-authored-by: Sankalp Thakur <sankalpsthakur@users.noreply.github.com>
@JamesParrott

Copy link
Copy Markdown
Contributor

The author has not run the tests in our workflows.
I have run the tests in our workflows, and the original issue this claims to fix is not reproducible as it was claimed.
There is little reason to think this PR will be any more worthwhile, and given that cursor is mentioned, I leave you to draw your own conclusions about whether or not this is AI slop.

@JamesParrott JamesParrott left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please close this PR. Or at least run the project's tests in your own workflows, and adjust them to show what exactly the issue is. I have done so, and as far as I can tell, the original issue is a nothing burger.

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.

MQTTMatcher: # wildcard does not match parent level (spec 4.7.1.2) - sport/# fails to match topic sport

2 participants