Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D2B35200C08 for ; Wed, 11 Jan 2017 10:01:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D196E160B2E; Wed, 11 Jan 2017 09:01:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4C0AD160B4E for ; Wed, 11 Jan 2017 10:01:59 +0100 (CET) Received: (qmail 58896 invoked by uid 500); 11 Jan 2017 09:01:58 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 58880 invoked by uid 99); 11 Jan 2017 09:01:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 09:01:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5E38B2C03E0 for ; Wed, 11 Jan 2017 09:01:58 +0000 (UTC) Date: Wed, 11 Jan 2017 09:01:58 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-10691) HttpRestServletResolveConsumerStrategy should pick the path with longest prefix match MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 11 Jan 2017 09:02:00 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-10691: -------------------------------- Issue Type: Improvement (was: Bug) > HttpRestServletResolveConsumerStrategy should pick the path with longest prefix match > ------------------------------------------------------------------------------------- > > Key: CAMEL-10691 > URL: https://issues.apache.org/jira/browse/CAMEL-10691 > Project: Camel > Issue Type: Improvement > Components: camel-http-common > Affects Versions: 2.17.3 > Reporter: Chandra Bose Renganathan > Priority: Minor > > HttpRestServletResolveConsumerStrategy should pick the path with longest prefix match. > The JAX-RS specification has defined strict sorting and precedence rules for matching URI expressions and is based on a most specific match wins algorithm. > For camel also it should be same. > This is an example use case: > {code} > @Override > public final void configure() throws Exception { > LOG.info("Configuring Camel routes"); > from("jetty:http://localhost:8080/crud?matchOnUriPrefix=true") > .to("cxfbean:crudService"); > from("jetty:http://localhost:8080/?matchOnUriPrefix=true") > .process(new StaticProcessor("/", "index.html", staticFileRoot)); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)