You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by João Assunção <jo...@exploitsys.com> on 2020/11/26 10:15:24 UTC

[Karaf] How to prevent configurations created via web console to be persisted as JSON

Hello all,

With the introduction in Karaf 4.3.0 of configuration files in JSON, now
when I create a new configuration using the web console, a json file is
created instead of a cfg file.
I assume the reason is the use of typed properties in the web console
config admin plugin, but in this case the configuration only uses primitive
types. Is it possible to prevent this behavior ?
Thank you.

Best regards
João Assunção

Email: joao.assuncao@exploitsys.com
Mobile: +351 916968984
Phone: +351 211933149
Web: www.exploitsys.com

Re: [Karaf] How to prevent configurations created via web console to be persisted as JSON

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Thanks for the Jira, I will fix that for 4.3.1.

Regards
JB

> Le 26 nov. 2020 à 19:29, João Assunção <jo...@exploitsys.com> a écrit :
> 
> Hi JB,
> 
> No need to apologize! I'm quite grateful for your dedication. 
> I created KARAF-6924 <https://issues.apache.org/jira/browse/KARAF-6924>. If I have time during the weekend I will try to fix it.
> 
> Best regards,
> João Assunção
> 
> Email: joao.assuncao@exploitsys.com <ma...@exploitsys.com>
> Mobile: +351 916968984
> Phone: +351 211933149
> Web: www.exploitsys.com <http://www.exploitsys.com/>
> 
> 
> 
> 
> On Thu, Nov 26, 2020 at 11:36 AM Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
> Hi,
> 
> My bad. I will fix that.
> 
> In the meantime, as workaround, you can disable this in etc/startup.properties by removing cm.json and configurator bundles.
> 
> Do you mind to create a Jira ? I will fix that for 4.3.1.
> 
> Sorry again.
> 
> Regards
> JB
> 
>> Le 26 nov. 2020 à 11:15, João Assunção <joao.assuncao@exploitsys.com <ma...@exploitsys.com>> a écrit :
>> 
>> Hello all,
>> 
>> With the introduction in Karaf 4.3.0 of configuration files in JSON, now when I create a new configuration using the web console, a json file is created instead of a cfg file. 
>> I assume the reason is the use of typed properties in the web console config admin plugin, but in this case the configuration only uses primitive types. Is it possible to prevent this behavior ?
>> Thank you.
>> 
>> Best regards
>> João Assunção
>> 
>> Email: joao.assuncao@exploitsys.com <ma...@exploitsys.com>
>> Mobile: +351 916968984
>> Phone: +351 211933149
>> Web: www.exploitsys.com <http://www.exploitsys.com/>
>> 
>> 
> 


Re: [Karaf] How to prevent configurations created via web console to be persisted as JSON

Posted by João Assunção <jo...@exploitsys.com>.
Hi JB,

No need to apologize! I'm quite grateful for your dedication.
I created KARAF-6924 <https://issues.apache.org/jira/browse/KARAF-6924>. If
I have time during the weekend I will try to fix it.

Best regards,
João Assunção

Email: joao.assuncao@exploitsys.com
Mobile: +351 916968984
Phone: +351 211933149
Web: www.exploitsys.com




On Thu, Nov 26, 2020 at 11:36 AM Jean-Baptiste Onofre <jb...@nanthrax.net>
wrote:

> Hi,
>
> My bad. I will fix that.
>
> In the meantime, as workaround, you can disable this in
> etc/startup.properties by removing cm.json and configurator bundles.
>
> Do you mind to create a Jira ? I will fix that for 4.3.1.
>
> Sorry again.
>
> Regards
> JB
>
> Le 26 nov. 2020 à 11:15, João Assunção <jo...@exploitsys.com> a
> écrit :
>
> Hello all,
>
> With the introduction in Karaf 4.3.0 of configuration files in JSON, now
> when I create a new configuration using the web console, a json file is
> created instead of a cfg file.
> I assume the reason is the use of typed properties in the web console
> config admin plugin, but in this case the configuration only uses primitive
> types. Is it possible to prevent this behavior ?
> Thank you.
>
> Best regards
> João Assunção
>
> Email: joao.assuncao@exploitsys.com
> Mobile: +351 916968984
> Phone: +351 211933149
> Web: www.exploitsys.com
>
>
>
>

Re: [Karaf] How to prevent configurations created via web console to be persisted as JSON

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

My bad. I will fix that.

In the meantime, as workaround, you can disable this in etc/startup.properties by removing cm.json and configurator bundles.

Do you mind to create a Jira ? I will fix that for 4.3.1.

Sorry again.

Regards
JB

> Le 26 nov. 2020 à 11:15, João Assunção <jo...@exploitsys.com> a écrit :
> 
> Hello all,
> 
> With the introduction in Karaf 4.3.0 of configuration files in JSON, now when I create a new configuration using the web console, a json file is created instead of a cfg file. 
> I assume the reason is the use of typed properties in the web console config admin plugin, but in this case the configuration only uses primitive types. Is it possible to prevent this behavior ?
> Thank you.
> 
> Best regards
> João Assunção
> 
> Email: joao.assuncao@exploitsys.com <ma...@exploitsys.com>
> Mobile: +351 916968984
> Phone: +351 211933149
> Web: www.exploitsys.com <http://www.exploitsys.com/>
> 
>