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

Karaf 4.2.0 Web console parsing issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Cannot Reproduce
    • None
    • None
    • karaf

    Description

      Very often it happens that after OSGi configuration update is done through web console, the corresponding configuration file (from karaf_home/etc) gets updated with the wrong brackets for a property that represents an array. The right brackets that should be used are square brackets "[", "]" and for some reason karaf sometimes put round brackets "(", ")". When that happens after the server gets restarted, it won't interpret well array of values, which leads to broken OSGi configuration. We rely a lot on configuration files (we use files with .config extension) and this causes a lot of problems.

      For example, the broken configuration file looks like this:

      property = ("value1", "value2", "value3")
      

      instead of using square brackets

      property = ["value1", "value2", "value3"]

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            bobanbp Boban Petkovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: