You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Volo Myhal (Jira)" <ji...@apache.org> on 2020/12/14 21:05:00 UTC
[jira] [Created] (FELIX-6371) JSONConfigurationWriter does not
escape backslash and other chars
Volo Myhal created FELIX-6371:
---------------------------------
Summary: 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: Web Console
Reporter: Volo Myhal
_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)