You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2017/08/11 09:50:00 UTC
[jira] [Resolved] (KARAF-5305) FeatureConfigInstaller writes
incorrect config if append=true and file already exists
[ https://issues.apache.org/jira/browse/KARAF-5305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider resolved KARAF-5305.
----------------------------------------
Resolution: Fixed
> FeatureConfigInstaller writes incorrect config if append=true and file already exists
> -------------------------------------------------------------------------------------
>
> Key: KARAF-5305
> URL: https://issues.apache.org/jira/browse/KARAF-5305
> Project: Karaf
> Issue Type: Bug
> Components: karaf-config
> Affects Versions: 4.2.0
> Reporter: Christian Schneider
> Assignee: Christian Schneider
> Fix For: 4.2.0
>
>
> While improving the org.apache.karaf.features.AppendTest I found that there is a case where the FeatureConfigInstaller behaves incorrectly.
> If you add cfgFile.createNewFile() to testAppend then the code does not use the java Property class to write the config but the felix TypedProperties.
> The resulting file looks like this:
> javax.servlet.context.tempdir = ( \
> \
> "data/pax-web-jsp", \
> \
> )
> This is incorrect as the property javax.servlet.context.tempdir contains a simple String not an array.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)