Skip to content

fix: reject empty shared subscription filters - #292

Open
efegokdemir wants to merge 1 commit into
apache:mainfrom
efegokdemir:codex/issue-288-shared-filter-validation
Open

efegokdemir wants to merge 1 commit into
apache:mainfrom
efegokdemir:codex/issue-288-shared-filter-validation

Conversation

@efegokdemir

Copy link
Copy Markdown
Contributor

Summary

  • Reject shared subscription filters whose topic filter is empty after the share name separator.
  • Keep valid filters such as $share/g// unchanged.
  • Update the existing regression assertion for $share/g/.

Testing

  • git diff --check — passed
  • ./mvnw -pl bifromq-util -DskipTests -Dspotless.check.skip=true -Drat.skip=true compile — blocked by the local Java 8 runtime; the repository requires JDK 17+ and Checkstyle requires a newer JVM

Fixes #288

Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
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.

[BUG] TopicUtil.isValidTopicFilter accepts "$share/g/" — a shared subscription with an empty filter that can never match

1 participant