Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14092

FileUpload doesn't preserve filename encoding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Partially Completed
    • Affects Version/s: 4.5.7
    • Fix Version/s: 4.5.8
    • Component/s: None
    • Labels:
      None
    • Environment:

      WildFly 8/9

      Description

      Files names containing special characters get garbled during the file processing.

      • "štěně.png" => "Å¡těně.png"

      This is caused by a specification conflict:

      By XHR2 specification FormData is encoded as utf8 and the charset of the XHR isn't specified (since it cannot be changed).

      On server side the request parser looks for the charset and when it doesn't find it uses the default, which by HTTP/1.1 specification is iso-8859-1.

      (The default can apparently be changed in Tomcat but not in WildFly)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michpetrov Michal Petrov
                  Reporter:
                  michpetrov Michal Petrov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: