[chromium-bugs] Issue 43649 in chromium: Chrome adds .zip extension to pptx file

2 views
Skip to first unread message

chro...@googlecode.com

unread,
May 8, 2010, 5:33:33 AM5/8/10
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined

New issue 43649 by jonpreece10: Chrome adds .zip extension to pptx file
http://code.google.com/p/chromium/issues/detail?id=43649

Chrome Version : <Copy from: 'about:version'>
URLs (if applicable) : http://www.jpreece.com/wp-
content/uploads/2010/05/Viva.pptx
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 4: OK
Firefox 3.x: OK
IE 7: OK
IE 8: OK

What steps will reproduce the problem?
1. Download a PPTX file, just a simple link

What is the expected result?
The file should download with just pptx extension


What happens instead?
chrome adds .zip extension


Please provide any additional information below. Attach a screenshot if
possible.

Using a wordpress blog, but works fine on all other browsers, using chrome
4.1.249.1064


--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs

chro...@googlecode.com

unread,
May 10, 2010, 8:41:24 AM5/10/10
to chromi...@chromium.org

Comment #1 on issue 43649 by megazzt: Chrome adds .zip extension to pptx
file
http://code.google.com/p/chromium/issues/detail?id=43649

Chrome attempts to "fix" "bad" file extensions. Servers will attempt to
scan files
to determine "correct" file types in order to notify the client browser
about them.
This combination is producing this technically correct behavior.

First, understand then PPTX (and all Office 2007 filetypes) files are
renamed ZIP
files that have specific files and folders inside of them that Excel
recognizes as
its format.

Here is how the process goes, then.

1) The click requests the PPTX file and the server fetches it. Among the
metadata
returned by the server about the file is the file type. The server scans
the file
and determines (correctly) that it is a ZIP file and notifies the client.

2) Chrome is notified that the file is a ZIP but notices that the filename
does not
end in .ZIP, so it tries to be helpful (it can't know any better, it IS a
zip file)
and adds a .zip extension.

The REAL fix for this imo is for the server to not identify PPTX files as
ZIP files
to the client. If you use apache you can do this with a single line
in .htaccess
(IIRC the AddType directive; either specify the generic octet stream type
or look up
a proper mime type for PPTX).

Given that there are a number of different filetypes that are simply
renamed ZIPs
(XPI, JAR, PK3, DOCX, PPTX, etc) perhaps Chrome should also either have a
whitelist
of valie ZIP extensions it won't touch, or it should never rename ZIP type
files.
The current behavior could confuse users who don't understand how the ZIP
file format
is used in their PPTX document.

chro...@googlecode.com

unread,
May 31, 2010, 3:53:18 PM5/31/10
to chromi...@chromium.org

Comment #2 on issue 43649 by nicolo.cartiglia: Chrome adds .zip extension

Please fix this bug, it's really annoying


chro...@googlecode.com

unread,
Aug 1, 2010, 5:14:15 AM8/1/10
to chromi...@chromium.org

Comment #5 on issue 43649 by osophos: Chrome adds .zip extension to pptx
file
http://code.google.com/p/chromium/issues/detail?id=43649

Well. Chromium (what Chrome is developed from) has a problem when
downloading .pptx files, you can't open it. So in the attempt to fix the
problem, Chrome zipped the .pptx file so that the file is not damaged.

I experienced the damaged .pptx with Iron SRWare (also built from Chromium).

chro...@googlecode.com

unread,
Aug 10, 2010, 7:18:25 PM8/10/10
to chromi...@chromium.org

Comment #6 on issue 43649 by lyle.girandola: Chrome adds .zip extension to
pptx file
http://code.google.com/p/chromium/issues/detail?id=43649

this is not just a chrome problem, I ran into this today with Microsoft
IE. Would renaming the extension from *.PPsx to something else make a
difference, or cause other problems?

chro...@googlecode.com

unread,
Sep 30, 2010, 12:54:04 PM9/30/10
to chromi...@chromium.org
Updates:
Status: Duplicate
Mergedinto: 57080

Comment #10 on issue 43649 by est...@chromium.org: Chrome adds .zip

(No comment was entered for this change.)

chro...@googlecode.com

unread,
Dec 15, 2010, 4:14:29 AM12/15/10
to chromi...@chromium.org

Comment #11 on issue 43649 by mu.yang: Chrome adds .zip extension to pptx
file
http://code.google.com/p/chromium/issues/detail?id=43649

A way to support new file extensions (e.g. pptx, docx, etc.) is needed.

Reply all
Reply to author
Forward
0 new messages