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

The attachment suggest widget fails to upload files when using short URLs in Tomcat 9

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 14.10.4
    • Attachments
    • Unknown

    Description

      Steps to reproduce

      • Configure short URLs for Tomcat 9 using UrlRewriteFilter as described on the documentation, in particular with allowCasualMultipartParsing set to true.
      • Make sure file uploads works as expected from the attachments tab.
      • In a page, insert an attachment suggest widget with data-upload-allowed set to true (see example code below)
      • Try to upload an attachment using the attachment suggest widget
      {{velocity}}
      {{html}}
      #attachmentPicker({'data-upload-allowed': 'true'})
      {{/html}}
      {{/velocity}}
      

      Actual result

      The server returns an HTTP 500 with message "javax.mail.internet.ParseException: Missing start boundary".

      Environment

      • Recent Firefox or Chrome

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: