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 DB13C200BF6 for ; Tue, 10 Jan 2017 15:03:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D9A94160B50; Tue, 10 Jan 2017 14:03: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 52A49160B4B for ; Tue, 10 Jan 2017 15:03:59 +0100 (CET) Received: (qmail 22610 invoked by uid 500); 10 Jan 2017 14:03: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 22576 invoked by uid 99); 10 Jan 2017 14:03:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2017 14:03:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 685AE2C1F5A for ; Tue, 10 Jan 2017 14:03:58 +0000 (UTC) Date: Tue, 10 Jan 2017 14:03:58 +0000 (UTC) From: "Chandra Bose Renganathan (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-10691) HttpServletResolveConsumerStrategy 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: Tue, 10 Jan 2017 14:04:00 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chandra Bose Renganathan updated CAMEL-10691: --------------------------------------------- Summary: HttpServletResolveConsumerStrategy should pick the path with longest prefix match (was: HttpServletResolveConsumerStrategy should longest prefix) > HttpServletResolveConsumerStrategy should pick the path with longest prefix match > --------------------------------------------------------------------------------- > > Key: CAMEL-10691 > URL: https://issues.apache.org/jira/browse/CAMEL-10691 > Project: Camel > Issue Type: Bug > Components: camel-http-common > Affects Versions: 2.17.3 > Reporter: Chandra Bose Renganathan > > HttpServletResolveConsumerStrategy 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)