Ticket #2395 (new defect)

Opened 8 years ago

Problems with .exe downloads under MSIE

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.7
Component: CPSTramline Version: 3.5.2
Severity: normal Keywords: tramline internet explorer
Cc:

Description

File downloads are served through the FileDownloader object declared in Products.CPSCore.ProxyBase.

There is a special case in there for "problematic extensions under MSIE" : they are being rewrapped as a ZIP file to protect against misbehaviour of some MSIE plugins. Currently only .exe files are zipped.

Now of course, the zip production doesn't know about tramline, and the file is reduced to the tramline id inside the zip. It'd be pretty useless IMHO to construct the right zip : this is the point of tramline not to serve from Zope. So, it's better to deactivate the zipping for file objects that aren't OFS.Image.File instances.

Besides, MSIE extension detection has at least precedence over the MIME type. In my real-life example the file name is zopeedit-win32-0.9.3.exe, and Windows doesn't understand the extension, probably because of the multiple dot. Renaming without dots solves this secundary problem.

Note: See TracTickets for help on using tickets.