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

Alleviate the need to map /upload/* URLs to the XWiki Action Servlet when using short URLs with Tuckey UrlRewriteFilter

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 13.4.5
    • Attachments
    • None
    • Unknown

    Description

      When using short URLs using Tuckey's UrlRewriteFilter, the upload action does not work properly, as reported in XWIKI-19444. A workaround consists in mapping explicitely /upload/* URLs to the XWiki Action Servlet by adding the configuration below to web.xml. This workaround (or other ones listed in XWIKI-19444 but which have downsides) is needed due to a change in the way Tomcat 9 handles requests compared to Tomcat 8, as described in this comment by vmassol. This issue is about alleviating the need of this workaround.

      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>/upload/*</url-pattern>
      </servlet-mapping>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              slauriere slauriere
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: