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 D34614DFA for ; Tue, 21 Jun 2011 11:10:08 +0000 (UTC) Received: (qmail 9812 invoked by uid 500); 21 Jun 2011 11:10:08 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 9797 invoked by uid 500); 21 Jun 2011 11:10:08 -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 9787 invoked by uid 99); 21 Jun 2011 11:10:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 11:10:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD 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; Tue, 21 Jun 2011 11:10:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 857554257F5 for ; Tue, 21 Jun 2011 11:09:47 +0000 (UTC) Date: Tue, 21 Jun 2011 11:09:47 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <1234718222.24045.1308654587543.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CXF-3608) CXF JAX-RS selection algorithm always prefers resource methods to subresource locators MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 CXF JAX-RS selection algorithm always prefers resource methods to subresource locators -------------------------------------------------------------------------------------- Key: CXF-3608 URL: https://issues.apache.org/jira/browse/CXF-3608 Project: CXF Issue Type: Bug Components: JAX-RS Reporter: Sergey Beryozkin Assignee: Sergey Beryozkin Fix For: 2.3.6, 2.4.2, 2.5 JAX-RS 1.1 spec says: Sort E using the number of literal characters in each member as the primary key (descending order), the number of capturing groups as a secondary key (descending order), the number of capturing groups with non-default regular expressions (i.e. not '([^ /]+?)') as the tertiary key (descending order), and the source of each member as quaternary key sorting those derived from Tmethod ahead of those derived from Tlocator. At the moment CXF JAX-RS using the "the source of each member" criteria as the primary key, thus given @Path("/") public Resource { @Path("somepath") Subresource getSub() {} @GET @Path("{id}") Book get(@PathParam("id") String id) {} } get() method will always be preferred even though a subresource locator has a more specific path expression -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira