Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4356

address match with wildcards seems to be broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.29.0
    • 2.30.0
    • Broker
    • None

    Description

      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"));

      Attachments

        1. MatchTest.java
          1 kB
          Gary Tully

        Issue Links

          Activity

            People

              gtully Gary Tully
              gtully Gary Tully
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h