activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johan Stenberg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARTEMIS-1890) # any-word wildcard doesn't match zero words if not used at the end of a wildcard expression
Date Sat, 26 May 2018 14:48:00 GMT

     [ https://issues.apache.org/jira/browse/ARTEMIS-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Johan Stenberg updated ARTEMIS-1890:
------------------------------------
    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.

  was:
[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 an wildcard expression. If any word comes after
the wildcard then it's actual behaviour 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.


> # any-word wildcard doesn't match zero words if not used at the end of a wildcard expression
> --------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1890
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1890
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.6.0
>            Reporter: Johan Stenberg
>            Priority: Major
>         Attachments: Artemis1890_AnyWordWildCard_Test.java
>
>
> [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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message