From issues-return-43399-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Fri Mar 8 07:06:11 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B3C7F180626 for ; Fri, 8 Mar 2019 08:06:10 +0100 (CET) Received: (qmail 62117 invoked by uid 500); 8 Mar 2019 07:06:04 -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 61864 invoked by uid 99); 8 Mar 2019 07:06:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Mar 2019 07:06:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9BD6E1854DD for ; Fri, 8 Mar 2019 07:06:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id TXb-WUEl8V1m for ; Fri, 8 Mar 2019 07:06:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1B43D5FE57 for ; Fri, 8 Mar 2019 07:06:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3C788E2830 for ; Fri, 8 Mar 2019 07:06:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 64957257DC for ; Fri, 8 Mar 2019 07:06:00 +0000 (UTC) Date: Fri, 8 Mar 2019 07:06:00 +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] [Updated] (KARAF-6182) Updating a value should be reflected in config:list 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-6182?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-6182: ---------------------------------------- Fix Version/s: (was: 4.2.4) 4.2.5 > Updating a value should be reflected in config:list > ------------------------------------------------------------ > > Key: KARAF-6182 > URL: https://issues.apache.org/jira/browse/KARAF-6182 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.1.6 > Reporter: Julien Greffe > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Major > Fix For: 4.3.0, 4.2.5 > > Attachments: feature-test_init.xml, feature-test_updated_0.1.0.xm= l, feature-test_updated_0.2.0.xml > > > Hello, > =C2=A0 > this issue is related to https://issues.apache.org/jira/browse/KARAF-2894= ,=C2=A0but seems it's still in OPEN state. > =C2=A0 > =C2=A0 > Having this feature file (feature-test_init.xml), installing it and listi= ng the config shows the right values=C2=A0: > {{karaf@trun()> feature:install config-test}} > {{karaf@trun()> config:list | grep configTest -A 5}} > {{Pid: configTest.Default}} > {{BundleLocation: null}} > {{Properties:}} > {{=C2=A0myKey =3D "myInitValue"}} > {{=C2=A0org.apache.karaf.features.configKey =3D configTest.Default}} > {{=C2=A0service.pid =3D configTest.Default}} > =C2=A0 > Whenever removing the file from deploy dir, updating the feature file wit= h new value + modified value (feature-test_updated_0.1.0.xml), installing a= gain, the config shows old value + inserted value : > {{karaf@trun()> feature:install config-test}} > {{karaf@trun()> config:list | grep configTest -A 5}} > {{Pid: configTest.Default}} > {{BundleLocation: null}} > {{Properties:}} > {{=C2=A0myKey =3D "myInitValue"}} > {{=C2=A0newKey =3D "someValue"}} > {{=C2=A0org.apache.karaf.features.configKey =3D configTest.Default}} > {{=C2=A0service.pid =3D configTest.Default}} > =C2=A0 > Changing the feature version (feature-test_updated_0.2.0.xml) doesn't upd= ate existing keys : > {{karaf@trun()> feature:install config-test}} > {{karaf@trun()> config:list | grep configTest -A 5}} > {{Pid: configTest.Default}} > {{BundleLocation: null}} > {{Properties:}} > {{=C2=A0myKey =3D "myInitValue"}} > {{=C2=A0newKey =3D "someValue"}} > {{=C2=A0newKey2 =3D "someValue2"}} > {{=C2=A0org.apache.karaf.features.configKey =3D configTest.Default}} > {{=C2=A0service.pid =3D configTest.Default}} > =C2=A0 > In order to have updated values of existing keys, should I always have to= execute {{config:delete }} ? > Or is there an uninstall option which allows to also delete the related c= onfig? > Is this related to [https://github.com/apache/karaf/blob/karaf-4.1.6/feat= ures/core/src/main/java/org/apache/karaf/features/internal/service/FeatureC= onfigInstaller.java#L132]=C2=A0? > =C2=A0 > Thank you, -- This message was sent by Atlassian JIRA (v7.6.3#76005)