Lack of URL Encoding while downloading files truncates file names when they contain spaces

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.14.0, 7.14.0-alpha1
    • Affects Version/s: 7.12.5
    • Component/s: rest-distro
    • Environment:
      Windows 10 x64
      Tomcat Application Server

      Steps to reproduce

      • Create a file locally with a filename that includes spaces, e. g. Foo Bar.txt
      • Use Firefox
      • Store the file as a process variable
      • Download the file e.g., via GET /variable-instance/[VARIABLE_INSTANCE_ID]/data and store it on your local machine

      Expected behavior

      When you check your download folder, the file should be stored as Foo Bar.txt

      Observed behavior

      The file is stored as Foo

      Problem

      The content-disposition header looks as follows:

      Content-Disposition: attachment; filename=Foo Bar.bpmn
      

      Solution

      The filename in the content-disposition header should be a double-quoted string:

      Content-Disposition: attachment; filename="Foo Bar.bpmn"
      

      Hints

      • The problem does not occur in Google Chrome
      • [1] states that the filename needs to be a double-quoted string

      [1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1

            Assignee:
            Tassilo Weidner-Mühl
            Reporter:
            Juan C Calderon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: