Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1259

Make it able to parse multipart headers in encoding other than US-ASCII

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 3.0.16.Final
    • jaxrs
    • None

    Description

      Currently when you upload file from HTML multipart form RESTEASY does not support file names in non-latin characters.

      For example if I try to upload file named in Russian ("ั‚ะตัั‚.txt") sending request in UTF-8 multipart header has it's name as "????????.txt".

      org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataReader is an consumer.
      File upload form JSP example:
      <%@page contentType="text/html" pageEncoding="UTF-8"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Test</title>
      </head>
      <body>
      <form method="POST" action="/upload/file" enctype="multipart/form-data">
      <input type="file" name="uploaded" />
      <input type="submit" name="sbm" value="submit" />
      </form>
      </body>
      </html>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sakolinkirill Kirill Sakolin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: