Henrik Lundahl created FELIX-6381:
-------------------------------------
Summary: Pid is not URL-encoded in web console
Key: FELIX-6381
URL: https://issues.apache.org/jira/browse/FELIX-6381
Project: Felix
Issue Type: Bug
Components: Web Console
Affects Versions: webconsole-4.3.4
Environment: Linux (Docker image tomcat:8.5-jdk8-openjdk), Tomcat
8.5.59.
Reporter: Henrik Lundahl
The pid is not URL-encoded before it's appended to the request URL. See
[here|https://github.com/apache/felix-dev/blob/308c199126ab48b3773018d7f467dabab96affff/webconsole/src/main/resources/res/ui/config.js#L675].
Specifically this causes problems with the temporary pid "[Temporary PID
replaced by real PID upon save]", used for factory components, since the
brackets aren't valid in a URL.
Trying to save a new configuration for a factory component results in 400 Bad
Request in Tomcat 8.5.59 (over HTTP, but not AJP).
Either change the placeholder "[Temporary PID replaced by real PID upon save]"
to something that's URL-safe and/or URL-encode the pid in the client.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)