Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 32449 invoked from network); 21 Oct 2009 21:07:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Oct 2009 21:07:22 -0000 Received: (qmail 8934 invoked by uid 500); 21 Oct 2009 21:07:22 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 8842 invoked by uid 500); 21 Oct 2009 21:07:21 -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 8832 invoked by uid 99); 21 Oct 2009 21:07:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 21:07:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 21:07:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6B4AC234C1EE for ; Wed, 21 Oct 2009 14:06:59 -0700 (PDT) Message-ID: <384708428.1256159219438.JavaMail.jira@brutus> Date: Wed, 21 Oct 2009 21:06:59 +0000 (UTC) From: "david small99 (JIRA)" To: dev@felix.apache.org Subject: [jira] Created: (FELIX-1792) Felix OBR seems to just randomly choose one of the satisifed bundles if more than one bundle meets the requirement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Felix OBR seems to just randomly choose one of the satisifed bundles if more than one bundle meets the requirement ------------------------------------------------------------------------------------------------------------------ Key: FELIX-1792 URL: https://issues.apache.org/jira/browse/FELIX-1792 Project: Felix Issue Type: Bug Components: Bundle Repository (OBR) Affects Versions: felix-1.8.0 Environment: n/a Reporter: david small99 I have one bundle bundle1, which imports a package called com.obr.bundle Bundle1's manifest: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Bundle-ManifestVersion: 2 Bundle-Name: Bundle Plug-in Bundle-SymbolicName: com.obr.bundle1 Bundle-Version: 1.0.0 Export-Package: com.obr.bundle1 Import-Package: com.obr.bundle;version="[1.2.0.999,3.2.2.bz]" There are two bundles in my repositories, bundler2 and bundle 3. Both of them export package com.obr.bundle. Below are their manifest files. Bundle2 Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Bundle-ManifestVersion: 2 Bundle-Name: Bundle Plug-in Bundle-SymbolicName: com.obr.bundle2 Bundle-Version: 1.0.0 Bundle-Vendor: xxx Import-Package: a.b.c Export-Package: com.obr.bundle;version=3.2.2.blah Bundle3: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Bundle-ManifestVersion: 2 Bundle-Name: Bundle Plug-in Bundle-SymbolicName: com.obr.bundle3 Bundle-Version: 1.0.0 Import-Package: a.b.c Export-Package: com.obr.bundle;version=3.1 As you can see, both bundle2 and bundle3 meet the requirements of bundle1. I hope the highest package version, which is bundle2, is chosen by felix obr. However, sometimes bundle 3 was chosen instead of bundle2. The behaviour is random. Am I right to say that the Felix obr runtime just picks the first bundle that meets the requirements and then stop searching for any more eligible bundles? Thanks -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.