[
https://issues.apache.org/jira/browse/FELIX-6813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041284#comment-18041284
]
Konrad Windszus commented on FELIX-6813:
----------------------------------------
The JSON properties are encoded a 2nd time via
https://github.com/apache/felix-dev/blob/e9dbc04d1ffbd1cdcc40759b63046e6808c5571d/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java#L562,
because the underlying JSONWriter also quotes special characters
(https://github.com/apache/felix-dev/blob/60bd13b65be5b6c05a07f754d371239b21af796b/utils/src/main/java/org/apache/felix/utils/json/JSONWriter.java#L196)
unconditionally (i.e. expects always unencoded data).
> WebConsole: Every slash is prefixed with a backslash in
> /system/console/bundles/<id>
> ------------------------------------------------------------------------------------
>
> Key: FELIX-6813
> URL: https://issues.apache.org/jira/browse/FELIX-6813
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-5.0.12
> Reporter: Konrad Windszus
> Priority: Major
>
> Seems that FELIX-6757 introduced a regression. For example the Bundle
> Documentation value of the webconsole itself is emitted like this
> {{https:\/\/github.com\/apache\/felix-dev\/tree\/master\/webconsole}}
> Somehow the values seems to be encoded twice.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)