karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5305) FeatureConfigInstaller writes incorrect config if append=true and file already exists
Date Fri, 11 Aug 2017 09:37:00 GMT
Christian Schneider created KARAF-5305:
------------------------------------------

             Summary: 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)

Mime
View raw message