File download fails due to spaces in filename

If a file with a filename containing spaces is downloaded from an Apache 2.4 web server, the download may fail with a zero file size.

There is a known Apache bug (bug 55329) that prevents mod_proxy_fcgi from correctly decoding application filenames with spaces or non-ASCII characters. This bug prevents Apache from correctly handling filenames with an escaped sequence, like that representing the space (%20) in the filename "my%20test.pdf".
Important:

Apache bug 55329 is fixed with Apache 2.4.11.

Check the version of Apache you have:

  • If you are using Apache 2.4.11 or later, check that the Apache proxy-fcgi-pathinfo configuration is set:
    SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
    Apache will unescape/decode the escaped characters in the filename by replacing them with the actual characters they represent.
  • If you are using a version prior to Apache 2.4.11, you must either upgrade to Apache 2.4.11 or greater, or ensure there are no spaces or non-ASCII characters in filenames downloaded by your Genero applications.