Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5305

FeatureConfigInstaller writes incorrect config if append=true and file already exists

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0.M1
    • Fix Version/s: 4.2.0.M1
    • Component/s: karaf
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              chris@die-schneider.net Christian Schneider
              Reporter:
              chris@die-schneider.net Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: