[ 
https://issues.apache.org/jira/browse/KARAF-6322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16935069#comment-16935069
 ] 

Jean-Baptiste Onofré commented on KARAF-6322:
---------------------------------------------

I'm not able to reproduce the problem. Here's my test case:

1. I created a configuration file {{etc/foo.bar.cfg}} containing:

{code}
foo = ["value1", "value2"]
{code}

2. I started Karaf and installed the webconsole (using {{feature:install 
webconsole}}).
3. On {{http://localhost:8181/system/console/configMgr}}, I edited the 
{{foo.bar}} configuration. I can see the array and add a new value in the array.
4. The cfg file is correctly updated with the three values with [ and ].

NB: Felix WebConsole has been upgraded recently.

> Karaf 4.2.0 Web console parsing issue
> -------------------------------------
>
>                 Key: KARAF-6322
>                 URL: https://issues.apache.org/jira/browse/KARAF-6322
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>            Reporter: Boban Petkovic
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>              Labels: webconsole
>             Fix For: 4.3.0, 4.2.7
>
>
> 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:
> {code:java}
> property = ("value1", "value2", "value3")
> {code}
> instead of using square brackets
> {code:java}
> property = ["value1", "value2", "value3"]{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to