Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-13

non ascii characters in Upload filename

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Fulcrum
    • None

    Description

      I have a little problem with Upload fulcrum service.
      It seems that the Commons.FileUpload component used by Upload service has some problems with special characters in Filenames.

      This means that in windows the filename is garbled when you try to attach a file with special characters, while, on Linux, you simply can't retrieve the files you've attached

      The solution for the problem is to use the setHeaderEncoding accordingly to your configuration
      http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/FileUploadBase.html#setHeaderEncoding()
      Unfortunately, the Upload fulcrum service doesn't expose such parameter and that doesn't allow me to solve the problem.

      I've prepared a little patch that would expose such a parameter so that it can be configured.

      Scarab issue FULS12 was raised by Fabio Insaccanebbia (insac at insac dot com).

      Fabio also attached a file with a special character in the filename - I did not transfer this across.

      Attachments

        1. fulcrum_upload.patch
          3 kB
          Scott Eade

        Activity

          People

            tv Thomas Vandahl
            seade Scott Eade
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: