Affects Version/s: 2011.5, 2011.6, 2011.7, 2011.8, 2011.9, 4.2011, 4.3.0, 4.4.0, 4.5.0, 4.6.0-dev
Fix Version/s: None
Please correct me if I am wrong, but it seems to me that we have a severe problem with files being uploaded to eZ Publish.
I have found out that about half of the filenames in table ebinaryfile lacks the file suffixes.
For instance - a pdf file is uploaded. When checking the table, I notice that the filename is
When it in fact should have been
I have been looking into this, and can reproduce the problem easily. See below.
Using ez4.3.0 or any newer version up to 2011.9, edit any page and use the Online Editor to upload any pdf file.
Now, check the filename of the file in table ezbinaryfile. You will see that it misses its .pdf suffix.
Now, go to the media library of the site and upload a pdf file directly.
Check the table ezbinaryfile. You will see that the file is uploaded correctly, maintaining the .pdf suffix of the filename.
So, obviously this problem affects only some of the files being uploaded - the ones being uploaded using the Online Editor.
If using the filename attribute for downloads of files, in Firefox, the files are possible to download as pdf:s even without the suffix being present. BUT - Internet Explorer launches a security warning, efficiently preventing the user to view the file. When using the original filename attribute, download seems to work in both browsers.