Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 72119 invoked from network); 8 Feb 2011 09:49:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2011 09:49:02 -0000 Received: (qmail 11015 invoked by uid 500); 8 Feb 2011 09:49:02 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 10906 invoked by uid 500); 8 Feb 2011 09:49:00 -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 10893 invoked by uid 99); 8 Feb 2011 09:48:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Feb 2011 09:48:59 +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, 08 Feb 2011 09:48:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B8C8A199A4E for ; Tue, 8 Feb 2011 09:47:58 +0000 (UTC) Date: Tue, 8 Feb 2011 09:47:58 +0000 (UTC) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Message-ID: <442444412.2067.1297158478753.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <6601509.106041289329269653.JavaMail.jira@thor> Subject: [jira] Closed: (FELIX-2691) Apache Felix HTTP service HttpServiceImpl.isNameValid does not match OSGi R4.2 spec? 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-2691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger closed FELIX-2691. ------------------------------------ Close issues after release > Apache Felix HTTP service HttpServiceImpl.isNameValid does not match OSGi R4.2 spec? > ------------------------------------------------------------------------------------ > > Key: FELIX-2691 > URL: https://issues.apache.org/jira/browse/FELIX-2691 > Project: Felix > Issue Type: Bug > Components: HTTP Service > Affects Versions: http-2.0.4 > Environment: Not relevant > Reporter: Misha Koshelev > Assignee: Felix Meschberger > Fix For: http-2.2.0 > > Attachments: FELIX-2691-HttpServiceImpl-isNameValid-comply-OSGI-R42.patch > > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > Filing bug per: > http://www.mail-archive.com/dev@felix.apache.org/msg19853.html > The R4.2 enterprise spec from > http://www.osgi.org/Download/File?url=/download/r4v42/r4.enterprise.pdf > on page 48 clearly states: > The name parameter must also not end with slash ('/') with the > exception that a name of the form "/" is used to denote the root of > the bundle. > The relevant code, in trunk, is, from > http://svn.apache.org/repos/asf/felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceImpl.java > public void registerResources(String alias, String name, HttpContext context) > throws NamespaceException > { > if (!isNameValid(name)) { > throw new IllegalArgumentException( "Malformed resource > name [" + name + "]"); > } > ... > and > private boolean isNameValid(String name) > { > if (name == null) { > return false; > } > if (name.endsWith( "/" )) { > return false; > } > return true; > } -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira