Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6629

Cannot create factory configuration when Felix WebConsole is running in Tomcat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-4.8.12
    • webconsole-4.9.0
    • Web Console
    • 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

          Activity

            People

              cziegeler Carsten Ziegeler
              shuber Serge Huber
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: