Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.3, 2.2
-
None
Description
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("", ".*");
Attachments
Attachments
Issue Links
- is duplicated by
-
CXF-2117 method AnnotationHandlerChainBuilder.patternMatches() causes CXF portability issues with other JAX-WS stacks
- Closed