Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-24080

Support for multi-level context path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 18.2.0-rc-1, 17.10.5
    • 17.10.4
    • Containers
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      When setting a multi-level context path as described in Tomcat https://tomcat.apache.org/tomcat-10.1-doc/config/context.html#Naming , files loaded from webjars fail to be loaded by the browser because their generated URL is partly URL encoded.

      This occurs inside the method ExtendedURL#encodeSegment(String value) which will URL encode the / from a multi-level context path into %2F, breaking the URL and leading to a HTTP error code 404 Not Found

      Attachments

        Activity

          People

            issa.gorissen@ext.ec.europa.eu Issa Gorissen
            issa.gorissen@ext.ec.europa.eu Issa Gorissen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: