You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org> on 2011/10/25 13:56:32 UTC

[jira] [Commented] (KARAF-952) config:propdel doesn't delete the property in the cfg file

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

Jean-Baptiste Onofré commented on KARAF-952:
--------------------------------------------

The issue is that the config:update command reload the properties from the cfg file, apply the change (new properties or property changes) and save back:

Properties p = new Properties(storageFile);

It means that if we remove a property in the session, it's not removed from the file.

We should check the properties present in p but not present in the session properties, and remove it from p.
                
> config:propdel doesn't delete the property in the cfg file
> ----------------------------------------------------------
>
>                 Key: KARAF-952
>                 URL: https://issues.apache.org/jira/browse/KARAF-952
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.5, 3.0.0
>
>
> When invoking:
> config:edit my.pid
> config:propdel key
> config:update
> the etc/my.pid.cfg still contain the key property.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira