[ 
https://issues.apache.org/jira/browse/GUACAMOLE-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15708687#comment-15708687
 ] 

Giulio D'Ali commented on GUACAMOLE-129:
----------------------------------------

[~mike.jumper] Just testing this further and the Content-Disposition header is 
almost critical for IE11 to work. If you have the popup blocker turned on 
(which most of our customers do), then the download silently fails and nothing 
works.

Using fiddler, I intercepted the traffic and simply added the missing header. 
This fixed two issues:

1) IE11 actually giving a download prompt for the file, even with popup blocker 
turned on
2) For an XLSX file, actually saved with an XLS extension, it will download 
correctly without any inspection or modification.

This is the fiddler code I tested with:

{{
        static function OnBeforeResponse(oSession: Session)
        {
        
        if(oSession.fullUrl.Contains("test.txt"))
            oSession.ResponseHeaders.Add("Content-Disposition", "attachment; 
filename=\"test.txt\"");
        
        if(oSession.fullUrl.Contains("GDTEST.xls"))
            oSession.ResponseHeaders.Add("Content-Disposition", "attachment; 
filename=\"GDTEST.xls\"");
        }
}}


I'm not 100% sure, but I think the header would need to come in here, using the 
fileName passed in: 
https://github.com/apache/incubator-guacamole-client/blob/057a0922637c3f92c761cf26b1a6cb3d9eec8624/guacamole/src/main/java/org/apache/guacamole/rest/tunnel/TunnelResource.java#L132



> Office mime-types problem with IE
> ---------------------------------
>
>                 Key: GUACAMOLE-129
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-129
>             Project: Guacamole
>          Issue Type: Bug
>    Affects Versions: 0.9.10-incubating
>         Environment: Ubuntu 16, docker containers on latest 0.9.10 with 
> Windows internet explorer client.
>            Reporter: Robin
>            Priority: Minor
>
> When downloading an office file format using the guacamole file transfer 
> Internet Explorer will save an xlsx file as a zip file.  This does not happen 
> on the earlier 0.9.9 release.  Possibly a missing server mime-type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to