karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-952) config:propdel doesn't delete the property in the cfg file
Date Tue, 25 Oct 2011 11:56:32 GMT

    [ 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


View raw message