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

# any-word wildcard doesn't match zero words if not used at the end of a wildcard expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • Broker
    • None

    Description

      https://activemq.apache.org/artemis/docs/latest/wildcard-syntax.html states that the # wildcard character means "match any sequence of zero or more words". This however is only true if the wild card is the last character in a wildcard expression. If any word comes after the wildcard character then the actual behavior is "match any sequence of one or more words"

      This means, the pattern topics.#.FOO matches topics.abc.FOO but not topics.FOO

      I am attaching a test case.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              johan1 Johan Stenberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: