Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
webconsole-4.8.12
-
None
Description
The code used when creating a new OSGi factory configuration uses the following placeholder PID :
[Temporary PID replaced by real PID upon save]
(found in the code at https://github.com/apache/felix-dev/blob/master/webconsole/src/main/java/org/apache/felix/webconsole/internal/configuration/ConfigurationUtil.java)
While this might work with some HTTP servers, Tomcat does not allow the square brackets as they are not encoded and not allowed in the URL as they are reserved characters. One way around this is to configure the relatedPathChars in https://tomcat.apache.org/tomcat-10.1-doc/config/http.html#Standard_Implementation to allow the brackets but this should only be considered as a workaround, a better solution would be to use an URL-compliant placeholder such as :
_Temporary PID replaced by real PID upon save_
I can propose a PR if this solution seems acceptable.
Attachments
Issue Links
- links to