You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Brandan Jeter (JIRA)" <ji...@apache.org> on 2017/10/19 16:46:00 UTC

[jira] [Commented] (FELIX-5723) ConfigInstaller is not deleting files in the etc directory

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

Brandan Jeter commented on FELIX-5723:
--------------------------------------

FELIX-5686 fixed a NPE that was happening due to this issue, but did not fix the issue of files not being deleted.

> ConfigInstaller is not deleting files in the etc directory
> ----------------------------------------------------------
>
>                 Key: FELIX-5723
>                 URL: https://issues.apache.org/jira/browse/FELIX-5723
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: fileinstall-3.6.0, fileinstall-3.6.2
>            Reporter: Brandan Jeter
>
> The ConfigInstaller takes the pid from the ConfigurationEvent and tries to get the configuration from ConfigAdmin. This will not return the config because the config has been deleted. See https://github.com/apache/felix/blob/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/ConfigInstaller.java#L182
> The ConfigurationEvent must provide the felix.fileinstall property, so that the ConfigInstaller can use that to delete the corresponding file in etc.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)