Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43A6D459C for ; Wed, 11 May 2011 16:02:30 +0000 (UTC) Received: (qmail 44440 invoked by uid 500); 11 May 2011 16:02:30 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 44424 invoked by uid 500); 11 May 2011 16:02:30 -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 44416 invoked by uid 99); 11 May 2011 16:02:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 16:02:30 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2011 16:02:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0FEE045384 for ; Wed, 11 May 2011 16:01:48 +0000 (UTC) Date: Wed, 11 May 2011 16:01:48 +0000 (UTC) From: "Aki Yoshida (JIRA)" To: issues@cxf.apache.org Message-ID: <1330146899.3423.1305129708062.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CXF-3510) wrong destination determination by OSGi based CXF entry point (regarding its fallback logic) 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 wrong destination determination by OSGi based CXF entry point (regarding its fallback logic) -------------------------------------------------------------------------------------------- Key: CXF-3510 URL: https://issues.apache.org/jira/browse/CXF-3510 Project: CXF Issue Type: Bug Components: Transports Affects Versions: 2.3.4, 2.4 Reporter: Aki Yoshida Assignee: Aki Yoshida Fix For: 2.4.1, 2.3.5 This problem is described in cxf-user thread http://cxf.547215.n5.nabble.com/strange-destination-determination-logic-used-by-the-osgi-based-cxf-entry-point-td4385312.html In summary, the http entry point in the OSGi container uses the destination determination logic using a simple request path matching when there is no exact match of the request URL path to one of the registered destination paths. Consequently, when you have a service registered at "/abc", a request to any URL path starting with this string, for example, "/abc2", "/abctest" is also fowarded to this service. And this is not intended. The intention of this fallback logic was for the rest based calls to forward a request with an additional path argument to its correct service. For examples, requests to "/abc/def" or "/abc/1/2" should be forwarded to the service registered at "/abc". I'll be suggesting the change required in org.apache.cxf.transport.http_osgi.OsgiServletController for 2.3.x and org.apache.cxf.transport.http.DestinationRegistryImpl for 2.4.x. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira