Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B552187F9 for ; Thu, 19 Nov 2015 11:35:11 +0000 (UTC) Received: (qmail 66415 invoked by uid 500); 19 Nov 2015 11:35:11 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 66298 invoked by uid 500); 19 Nov 2015 11:35:11 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 66222 invoked by uid 99); 19 Nov 2015 11:35:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2015 11:35:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F27752C1F63 for ; Thu, 19 Nov 2015 11:35:10 +0000 (UTC) Date: Thu, 19 Nov 2015 11:35:10 +0000 (UTC) From: "Rob Walker (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FELIX-5109) Wrong path matching for http and http whiteboard service 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/FELIX-5109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15013387#comment-15013387 ] Rob Walker edited comment on FELIX-5109 at 11/19/15 11:34 AM: -------------------------------------------------------------- Just downloaded the latest OSGi v6 compendium spec in case this area changed. According to table 102.1 on p50 the described behavior, whilst apparently at odds with servlet matching, is correct for an OSGi HttpService. /foo should match /foo/something (or /fudd if you prefer the examples used in the spec). There is no concept of standard /foo/* matching within OSGi as far as I can see. Maybe I missed it, but it's also unnecessary because /foo is considered a root path. There's no issue with us having non-compliant extension services or bundles I guess, but requiring /foo/* would actually mean we are not conforming to the published OSGi HttpService. IMO that would not only be wrong, but would break existing code. Unless I'm totally misunderstanding this report! was (Author: walkerr): Just downloaded the latest OSGi v6 compendium spec in case this area changed. According to table 102.1 on p50 the described behavior, whilst apparently at odds with servlet matching, is correct for an OSGi HttpService. /foo should match /foo/something (or /fudd if you prefer the examples used in the spec). There's no issue with us having non-compliant extension services or bundles I guess, but requiring /foo/* would actually mean we are not conforming to the published OSGi HttpService. IMO that would not only be wrong, but would break existing code. Unless I'm totally misunderstanding this report! > Wrong path matching for http and http whiteboard service > -------------------------------------------------------- > > Key: FELIX-5109 > URL: https://issues.apache.org/jira/browse/FELIX-5109 > Project: Felix > Issue Type: Bug > Components: HTTP Service > Affects Versions: http.base-3.0.0, http.base-3.0.2, http.jetty-3.1.0, http.jetty-3.1.2 > Reporter: Carsten Ziegeler > Assignee: Carsten Ziegeler > Fix For: http.base-3.0.4, http.jetty-3.1.4 > > > It seems we have some bugs in the path matching which result from different handling between the http service and the servlet spec. > For the http service, an alias like "/foo" matches "/foo" and "/foo/*" - while for the servlet spec "/foo" only matches "/foo" - exact match. > Right now, in both cases "/foo/*" matches. > For the servlet spec a pattern like "/foo/*" matches "/foo/something" but also "/foo". Right now we don't handle the second case. -- This message was sent by Atlassian JIRA (v6.3.4#6332)