You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/05/21 16:59:00 UTC

[jira] [Commented] (KARAF-2894) Add option to feature:uninstall to cleanup feature configs/configfiles

    [ https://issues.apache.org/jira/browse/KARAF-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16845030#comment-16845030 ] 

ASF GitHub Bot commented on KARAF-2894:
---------------------------------------

jbonofre commented on pull request #849: [KARAF-2894] Add option to delete configurations/configuration files while uninstalling feature
URL: https://github.com/apache/karaf/pull/849
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Add option to feature:uninstall to cleanup feature configs/configfiles
> ----------------------------------------------------------------------
>
>                 Key: KARAF-2894
>                 URL: https://issues.apache.org/jira/browse/KARAF-2894
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf
>    Affects Versions: 3.0.0
>            Reporter: Simon Watson
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.6
>
>
> Config data specified in a feature, either using <config> or <configfile>, should be removed when the feature is uninstalled.
> This prevents a new version of a feature updating its config data.
> Example use case:
> I tried deploying the following feature as feature-test.xml in the /deploy dir of Karaf 3.0.0: 
> <?xml version="1.0" encoding="UTF-8"?> 
> <features name="test-features">
>         <feature name="config-test" version="1.0.0">
>                 <config name="my.new.config">
>                         my.key = my.value 
>                 </config>
>         </feature>
> </features>
> I then install it: feature:install config-test 
> And I see the following config created: config:list "(service.pid=my.new.config)" 
> Pid:            my.new.config 
> BundleLocation: null 
> Properties: 
>    service.pid = my.new.config 
>    my.key = my.value 
>    org.apache.karaf.features.configKey = my.new.config 
> But I don't see any matching file created in /etc. 
> When I uninstall the feature with "feature:uninstall config-test" I still see the config data appearing in config:list. 
> Moreover, if I uninstall the feature, modify the deploy/feature_test.xml to: 
> <feature name="config-test" version="1.0.1">
>                 <config name="my.new.config">
>                         my.key = my.value2 
>                 </config>
>         </feature>
> and then install the new feature version. I still see the old config data in config:list. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)