Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Cannot Reproduce
-
None
-
None
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"]