[
https://issues.apache.org/jira/browse/FELIX-6813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041045#comment-18041045
]
Konrad Windszus commented on FELIX-6813:
----------------------------------------
The HTML for {{/system/console/bundles/<id>}} looks like this
{code}
<script type="text/javascript">
// <![CDATA[
var startLevel = 20;
var drawDetails = true;
var currentBundle = 86;
var lastBundleData = {"status":"Bundle information: 672 bundles in total - all
672 bundles active.","s":[672,661,11,0,0],"data":[{"id":86,"name":"Apache Felix
Web Management
Console","fragment":false,"stateRaw":32,"state":"Active","version":"5.0.14","symbolicName":"org.apache.felix.webconsole","category":"","props":[{"key":"Symbolic
Name","value":"org.apache.felix.webconsole"},{"key":"Version","value":"5.0.14"},{"key":"Bundle
Location","value":"launchpad:resources\\\/install\\\/5\\\/org.apache.felix.webconsole\\-5.0.14.jar"},{"key":"Last
Modification","value":"Wed Nov 12 16:24:27 CET 2025"},{"key":"Bundle
Documentation","value":"https:\\\/\\\/github.com\\\/apache\\\/felix\\-dev\\\/tree\\\/master\\\/webconsole"}
{code}
so it seems that in some cases the escaping happens twice.
> 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}}
> Instead of using encodeForJavascript in
> [https://github.com/apache/felix-dev/commit/2d37b3ca32508861f5347f839334b1d1ccb83878#diff-ffc8194861e1fe4bc6d55aa30735aef193fd75a12c05a5bb6507253aa24fb0ebR767]
> probably encodeForHtml needs to be used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)