Issue Details (XML | Word | Printable)

Key: JRA-14214
Type: Bug Bug
Status: In Progress In Progress
Priority: Major Major
Assignee: Chris Mountford [Atlassian]
Reporter: Michael Tokar [Atlassian]
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JIRA

Office 2007 attachments (open document format files) download as ZIP files on some browsers

Created: 03/Jan/08 05:58 PM   Updated: 17/Sep/08 06:33 AM
Component/s: Attachments
Affects Version/s: 3.12.1
Fix Version/s: 3.13.x

Time Tracking:
Not Specified

File Attachments: 1. Microsoft Word Doc1.docx (62 kB)

Issue Links:
Reference
 

Participants: Chris Mountford [Atlassian], Diego Alonso [Atlassian], Ivar Hütt, Michael Tokar [Atlassian], Olle Friman and Wayne Johnston
Since last comment: 3 weeks, 5 days ago
Labels:


 Description  « Hide
When attaching files with .docx .xlsx .pptx .odt extensions, (files which are in the open document format), upon downloading the attachments again, the browser will attempt to save them as ZIP files in some cases (at least on IE in Windows). Instead, the browser should recognise the correct MIME type for the file and prompt accordingly ("this is a Word document", or similar).

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Diego Alonso [Atlassian] added a comment - 08/Jul/08 09:17 PM
The case seems to be happening in 3.12.3. These are the mime types I found while uploading a .docx file:

IE 7: application/x-zip-compressed
Safari: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Mozilla: application/vnd.openxmlformats


Wayne Johnston added a comment - 15/Aug/08 04:30 PM
This happens with other file types too. For example CSV files are saved as Excel (XLS) files. Observed using IE7 and Firefox 3.

Olle Friman added a comment - 15/Sep/08 02:05 AM
We experience this problem in 3.12.2. I have attached a xlsx. When the user try to open the file it will try to open a zip file.
It does not always happen, but right now I do not when it is.
Regards
Olle

Ivar Hütt added a comment - 16/Sep/08 12:53 AM
I tried with Firefox 3.0.1 and Google Chrome 0.2.149.29 - the sample file opens as docx file
In IE 7 (Version 7.0.5730.13) - downloads as zip file.

Ivar Hütt added a comment - 17/Sep/08 06:33 AM
Solution:

Add row
application/vnd.openxmlformats docx docm dotx dotm xlsx xlsm xltx xltm xlsb xlam pptx pptm potx potm ppam ppsx ppsm
into file .../WEB-INF/classes/mime.types
Restart JIRA server
Delete and re-upload problematic attachments.