Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 71963 invoked from network); 12 Oct 2009 12:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Oct 2009 12:15:54 -0000 Received: (qmail 39428 invoked by uid 500); 12 Oct 2009 12:15:53 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 39349 invoked by uid 500); 12 Oct 2009 12:15:53 -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 39334 invoked by uid 99); 12 Oct 2009 12:15:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 12:15:53 +0000 X-ASF-Spam-Status: No, hits=-10.4 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; Mon, 12 Oct 2009 12:15:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 59C04234C1E9 for ; Mon, 12 Oct 2009 05:15:31 -0700 (PDT) Message-ID: <159284929.1255349731366.JavaMail.jira@brutus> Date: Mon, 12 Oct 2009 05:15:31 -0700 (PDT) From: "Guillaume Nodet (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-1682) The newly installed bundles for a feature should be uninstalled when feature install failed In-Reply-To: <1069417298.1254457343580.JavaMail.jira@brutus> 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-1682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet resolved FELIX-1682. ------------------------------------ Resolution: Fixed Fix Version/s: (was: karaf-1.2.0) karaf-1.0.2 Assignee: Guillaume Nodet Committing to https://svn.apache.org/repos/asf/felix/trunk ... M karaf/features/command/src/main/java/org/apache/felix/karaf/features/command/InstallFeatureCommand.java M karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java M karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java Committed r824313 I'm sorry I did no see you patch before committing my fix. My patch is more general and add an option to the command to be able to not clean bundles (this can be useful when debugging a feature so that you don't have to manually install all the bundles). My patch also rollback dependant features installation upon failures. > The newly installed bundles for a feature should be uninstalled when feature install failed > ------------------------------------------------------------------------------------------- > > Key: FELIX-1682 > URL: https://issues.apache.org/jira/browse/FELIX-1682 > Project: Felix > Issue Type: Improvement > Components: Karaf > Reporter: richard stone > Assignee: Guillaume Nodet > Priority: Minor > Fix For: karaf-1.0.2 > > Attachments: Felix-1682.patch > > > Start Karaf 1.1.0 snapshot, type "features:install webconsole", at first, it will throw an exception "can not get org.apache.felix.karaf.webconsole.admin-1.1.0-SNAPSHOT.jar", run "osgi:list", you can see some bundles listed in this feature(like org.apache.felix.metatype) are installed. My point is if the feature install failed then the newly installed bundles should be uninstalled. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.