You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/03/25 03:01:52 UTC

[jira] Resolved: (CXF-1766) handler chain wildcard matching does not quite work

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

Daniel Kulp resolved CXF-1766.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.1
                   2.1.5

> handler chain wildcard matching does not quite work
> ---------------------------------------------------
>
>                 Key: CXF-1766
>                 URL: https://issues.apache.org/jira/browse/CXF-1766
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.1.3, 2.2
>            Reporter: Jarek Gawor
>            Assignee: Daniel Kulp
>             Fix For: 2.1.5, 2.2.1
>
>
> In AnnotationHandlerChainBuilder the following wildcard check is done:
>         if (localPart.contains("*")) {
>             //wildcard pattern matching
>             return Pattern.matches(localPart, comp.getLocalPart());
>         ...
> So, for example if localPart is "foo*", this check will only return true if comp.getLocalPart() returns "foo" followed by any number of o's but will return false on anything else even if the string starts with "foo". According to the spec the "foo*" should match any string starting with "foo", e.g. "fooBar", "fooCXF", etc. Looks like the "*" in the localPart need to be first converted into appropriate regex - e.g. localPart = localPart.replace("*", ".*");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.