You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/12/09 16:03:00 UTC

[jira] [Assigned] (FELIX-6381) Pid is not URL-encoded in web console

     [ https://issues.apache.org/jira/browse/FELIX-6381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned FELIX-6381:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré

> 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
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> 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.20.1#820001)