Skip to content

Updated exserver logic for dynamic topic publishing and subscribing#27

Open
KaveeshTennakoon wants to merge 1 commit into
entgra:masterfrom
KaveeshTennakoon:master
Open

Updated exserver logic for dynamic topic publishing and subscribing#27
KaveeshTennakoon wants to merge 1 commit into
entgra:masterfrom
KaveeshTennakoon:master

Conversation

@KaveeshTennakoon

Copy link
Copy Markdown

Purpose

MQTT wildcard topic authorization was failing for both dynamic subscription and publishing operations due to inflexible topic matching logic

Goals

Enable proper authorization for multi-level wildcard dynamic subscriptions and improve publish topic matching while maintaining backward compatibility

Approach

Created isTopicMatch method in ExServer.java to handle multi-level wildcards and updated both subscription and publish authorization logic:

  • Subscribe: Allow scopes with sufficient single-level wildcards (+) to authorize shorter topic prefixes with #
  • Publish: Use the improved isTopicMatch method instead of exact string matching for better wildcard support

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.

4 participants