[
https://issues.apache.org/jira/browse/FELIX-6371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed FELIX-6371.
-----------------------------------
> JSONConfigurationWriter does not escape backslash and other chars
> -----------------------------------------------------------------
>
> Key: FELIX-6371
> URL: https://issues.apache.org/jira/browse/FELIX-6371
> Project: Felix
> Issue Type: Bug
> Components: Inventory, Web Console
> Affects Versions: Inventory-1.0.6, webconsole-4.6.0
> Reporter: Volo Myhal
> Assignee: Carsten Ziegeler
> Priority: Major
> Fix For: webconsole-4.6.2, inventory-1.1.0
>
>
> _JSONConfigurationWriter.write_ method currently escapes/handles only three
> input characters: dblquote, \n and \r.
> As a result, it produces invalid JSON strings, for example when Windows path
> is present in /system/console/status-slingsettings/, which caused JSON
> parsers to fail.
> It should escape the backslash and other characters according to [1].
> [0]
> [https://github.com/apache/felix-dev/blob/master/inventory/src/main/java/org/apache/felix/inventory/impl/helper/JSONConfigurationWriter.java#L117]
> [1] [https://greenbytes.de/tech/webdav/rfc8259.html#rfc.section.7]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)