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 4142F2428 for ; Wed, 27 Apr 2011 15:46:43 +0000 (UTC) Received: (qmail 85586 invoked by uid 500); 27 Apr 2011 15:46:43 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 85464 invoked by uid 500); 27 Apr 2011 15:46:43 -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 85451 invoked by uid 99); 27 Apr 2011 15:46:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 15:46:42 +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; Wed, 27 Apr 2011 15:46:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2B964B6B40 for ; Wed, 27 Apr 2011 15:46:04 +0000 (UTC) Date: Wed, 27 Apr 2011 15:46:04 +0000 (UTC) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Message-ID: <1952546832.6189.1303919164175.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <526519821.5709.1303907523081.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FELIX-2935) Bundle.getEntryPaths and findEntries are returning META-INF/ multiple times 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-2935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025854#comment-13025854 ] Richard S. Hall commented on FELIX-2935: ---------------------------------------- This is what I see: g! lb START LEVEL 1 ID|State |Level|Name 0|Active | 0|System Bundle (3.0.8) 1|Active | 1|Apache Felix Bundle Repository (1.6.2) 2|Active | 1|Apache Felix Gogo Command (0.8.0) 3|Active | 1|Apache Felix Gogo Runtime (0.8.0) 4|Active | 1|Apache Felix Gogo Shell (0.8.0) 5|Installed | 1|print-bundle-entries (1.0.0.SNAPSHOT) g! start 5 Foo() called sahoo.osgitest1.Foo@13e58d4.start() Installed rfc143.test4 [6] Using printEntryPaths META-INF/ META-INF/MANIFEST.MF index.html WEB-INF/ WEB-INF/lib/ WEB-INF/lib/entities1-osgi.jar Using printEntryPaths2 /META-INF/ /META-INF/MANIFEST.MF /index.html /WEB-INF/ /WEB-INF/lib/ /WEB-INF/lib/entities1-osgi.jar Uninstalled rfc143.test4 [6] g! What should I be seeing? Maybe it is platform specific. > Bundle.getEntryPaths and findEntries are returning META-INF/ multiple times > --------------------------------------------------------------------------- > > Key: FELIX-2935 > URL: https://issues.apache.org/jira/browse/FELIX-2935 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: framework-3.0.8 > Reporter: Sahoo > Attachments: FELIX-2935.zip > > > Bundle.getEntryPaths("/") and Bundle.findEntries("/", "*", true) return META-INF/ twice. There is no fragment attached, so there is no reason for findEntries to return twice. > My code looks like this: > void printEntryPaths(Bundle b, String s) { > Enumeration e = b.getEntryPaths(s); > if (e!=null) { > while (e.hasMoreElements()) { > String next = (String)e.nextElement(); > System.out.println(next); > printEntryPaths(b, next); > } > } > } > void printEntryPaths2(Bundle b, String s) { > Enumeration e = b.findEntries(s, "*", true); > if (e != null) { > while (e.hasMoreElements()) { > URL next = (URL)e.nextElement(); > System.out.println(next.getPath()); > } > } > } > This seems to be a regression. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira