[
https://issues.apache.org/jira/browse/FELIX-6412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17432607#comment-17432607
]
Grzegorz Grzybek commented on FELIX-6412:
-----------------------------------------
My scenario involves {{org.osgi.framework.hooks.service.EventListenerHook}},
{{org.osgi.framework.hooks.service.FindHook}} and a wrapper for
{{org.osgi.service.cm.ConfigurationAdmin}}, so fileinstall gets only the
wrapped ConfigAdmin.
This is quite tricky setup, but it works for me - I use it with Wildfly
Credential Store to be able to use aliased secrets in {{etc/*.cfg}} and decrypt
them (dereference using the Credential Store) at the edge of FileInstall and
ConfigAdmin...
I'll investigate the changes:
{noformat}
$ git lg org.apache.felix.fileinstall-3.6.8..org.apache.felix.fileinstall-3.7.2
--
fileinstall/src/main/java/org/apache/felix/fileinstall/internal/ConfigInstaller.java
* (2021-10-21 10:58:27 +0200) 5786b59842 [FELIX-6419] Check if ConfigAdmin
service is there to avoid NPE <Jean-Baptiste Onofré>
* (2021-05-15 09:36:44 -0400) 101a360248 [FELIX-6229] Not compatible with the
symlinks Kubernetes uses to mount ConfigMaps <Raymond Augé>
* (2021-05-09 11:41:30 -0400) 131ceab4f2 [FELIX-6411] use friendly name as
factory name when creating new configurations <Raymond Augé>
* (2021-05-09 10:53:24 -0400) 7c160b6354 [FELIX-6413] Make sure file checksums
account for write permissions <Raymond Augé>
* (2021-05-09 09:56:40 -0400) 98d3533818 [FELIX-6412] Use
Configuration.updateIfDifferent <Raymond Augé>
* (2021-05-09 09:53:18 -0400) bbaa489dbb [FELIX-6410] Set the READ_ONLY
attribute for configurations <Raymond Augé>
* (2021-05-08 10:28:21 -0400) a195e1e308 [FELIX-6409] FileInstall logs useless
messages due to incorrect interpolations <Raymond Augé>
{noformat}
next week...
> Use Configuration.updateIfDifferent
> -----------------------------------
>
> Key: FELIX-6412
> URL: https://issues.apache.org/jira/browse/FELIX-6412
> Project: Felix
> Issue Type: Improvement
> Components: File Install
> Reporter: Raymond Augé
> Assignee: Raymond Augé
> Priority: Major
> Fix For: fileinstall-3.7.0
>
>
> Configuration Admin spec 1.6 added a {{Configuration.updateIfDifferent}} to
> avoid needless churning on no-op configuration updates.
> This is particular interesting for FileInstall in scenarios where file
> modification time was altered, comments were edited, or any other change
> which doesn't actually result in a config change.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)