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 CB1B110D11 for ; Tue, 3 Dec 2013 01:21:35 +0000 (UTC) Received: (qmail 90011 invoked by uid 500); 3 Dec 2013 01:21:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 89984 invoked by uid 500); 3 Dec 2013 01:21:35 -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 89969 invoked by uid 99); 3 Dec 2013 01:21:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 01:21:35 +0000 Date: Tue, 3 Dec 2013 01:21:35 +0000 (UTC) From: "Valentin Mayamsin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-5432) JAX-RS resources finding fails in case @Path is non-unique MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Valentin Mayamsin updated CXF-5432: ----------------------------------- Summary: JAX-RS resources finding fails in case @Path is non-unique (was: JAX-RS resources finding is unpredictable in case @Path is non-unique) > JAX-RS resources finding fails in case @Path is non-unique > ---------------------------------------------------------- > > Key: CXF-5432 > URL: https://issues.apache.org/jira/browse/CXF-5432 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.7.6 > Reporter: Valentin Mayamsin > Priority: Minor > > Let's say I have two resources: > {code} > @Path("resource") > class ResourceOne { > @Path("one") > String getSomething(); > } > @Path("resource") > class ResourceTwo { > @Path("two") > String doSomething(); > } > {code} > So there are two URIs to access them: > resource/one > resource/two > With the current implementation one of them would fail. > The reason is org.apache.cxf.jaxrs.model.ClassResourceInfoComparator assumes @Path values are unique which is not necessarily true. > Workaround is to make @Path value unique for root resources. -- This message was sent by Atlassian JIRA (v6.1#6144)