Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 66118 invoked from network); 25 Mar 2009 02:02:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2009 02:02:13 -0000 Received: (qmail 3207 invoked by uid 500); 25 Mar 2009 02:02:13 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 3171 invoked by uid 500); 25 Mar 2009 02:02:13 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 3154 invoked by uid 99); 25 Mar 2009 02:02:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 02:02:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 02:02:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 524AC234C044 for ; Tue, 24 Mar 2009 19:01:52 -0700 (PDT) Message-ID: <1041571051.1237946512336.JavaMail.jira@brutus> Date: Tue, 24 Mar 2009 19:01:52 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-1766) handler chain wildcard matching does not quite work In-Reply-To: <925215523.1219783126180.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.