[
https://issues.apache.org/jira/browse/ARTEMIS-4356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743269#comment-17743269
]
ASF subversion and git services commented on ARTEMIS-4356:
----------------------------------------------------------
Commit f5251bc5cb6b12e3df45301ec3b9013ccb58b942 in activemq-artemis's branch
refs/heads/main from Gary Tully
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=f5251bc5cb ]
ARTEMIS-4356 ensure match regexp expression is anchored on eot to avoid partial
matches in error
> address match with wildcards seems to be broken
> -----------------------------------------------
>
> Key: ARTEMIS-4356
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4356
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.29.0
> Reporter: Gary Tully
> Assignee: Gary Tully
> Priority: Major
> Fix For: 2.30.0
>
> Attachments: MatchTest.java
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Using a wildcard address include match in federation, include test.# is too
> lenient which points to a bug in the address settings matcher that is in play.
>
> the attached test shows the problem.
> {{final Match<?> underTest = new Match<>("test.#", null, new
> WildcardConfiguration());}}
> {{Predicate<String> predicate = underTest.getPattern().asPredicate();}}
> {{assertTrue(predicate.test("test.A"));}}
> {{assertFalse(predicate.test("testing.A"));}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)