From issues-return-26945-apmail-karaf-issues-archive=karaf.apache.org@karaf.apache.org Thu Nov 19 16:15:11 2015 Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FC4517740 for ; Thu, 19 Nov 2015 16:15:11 +0000 (UTC) Received: (qmail 94074 invoked by uid 500); 19 Nov 2015 16:15:11 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 94015 invoked by uid 500); 19 Nov 2015 16:15:11 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 93980 invoked by uid 99); 19 Nov 2015 16:15: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 16:15:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 109452C1F5E for ; Thu, 19 Nov 2015 16:15:11 +0000 (UTC) Date: Thu, 19 Nov 2015 16:15:11 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-3918) An installed blueprint.xml has always been updated and restarted when install another unrelated feature MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3918?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1501= 3766#comment-15013766 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-3918: --------------------------------------------- I will do a test with the blueprint: URL in a feature XML, like: {code} ... foo blueprint:mvn:564dac54e4b0b71887edc7c0/1.2/xml/blueprint =20 {code} > An installed blueprint.xml has always been updated and restarted when ins= tall another unrelated feature > -------------------------------------------------------------------------= ------------------------------ > > Key: KARAF-3918 > URL: https://issues.apache.org/jira/browse/KARAF-3918 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.0.0 > Environment: Java 7 > Reporter: Xilai Dai > Assignee: Jean-Baptiste Onofr=C3=A9 > > There is an installed blueprint.xml. (by install -s blueprint:mvn:org.abc= /my-project/1.0-SNAPSHOT/xml, or deploy this blueprint.xml into deploy fold= er). > then, if you do feature:install xxxx, to install some other feature (no d= ependencies to the blueprint.xml above), the installed blueprint.xml will a= lways be updated and restarted, that's not expected behavious. > After checking with org.apache.karaf.features.internal.service.Deployer c= lass, I found that the old checksum will only be calculated in case of url = start with "jar:" (Line 1159), so in case of the url start with "blueprint:= ", the new checksum will never equal with old checksum, then it will be put= into deployment.toUpdate Map. > The Deployer class should be fixed for "blueprint:" deployment. -- This message was sent by Atlassian JIRA (v6.3.4#6332)