felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Drake <cgdr...@infodrake.com>
Subject Felix Fileinstall 3.6.0 overwriting custom .json configuration files
Date Wed, 18 Apr 2018 20:40:20 GMT
Hello,

We have a OSGi service registered via a Bundle activator and which
implements the ArtifactInstaller and ConfigurationListener interfaces. The
purpose of this service is to support loading custom .json configuration
files from disk, creating and updating the corresponding config via the
ConfigurationAdmin and writing configuration changes back out to disk.

This service has worked well for a long time across multiple upgrades of
the Felix's FileInstall bundle.  Unfortunately recent changes as a result
of FELIX-5609 <https://issues.apache.org/jira/browse/FELIX-5609> have
broken this service.  Prior to FELIX-5609
<https://issues.apache.org/jira/browse/FELIX-5609> FileInstall was
restricted to handling .cfg and .config files and would ignore our
customized .json config files, never attempting to write them out to disk.
When we moved to FileInstall 3.6.0 we observed our .json config files being
overwritten by FileInstall's ConfigInstaller.

I believe the above is a bug and the changes introduced by FELIX-5609
<https://issues.apache.org/jira/browse/FELIX-5609> should have retained the
check restricting configuration handling to only .cfg and .confg files.

What do you think?

Regards,
Chris

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message