[ 
https://issues.apache.org/jira/browse/GUACAMOLE-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shaun Tarves updated GUACAMOLE-327:
-----------------------------------
    Description: 
Internet Explorer, including 11, doesn't have support for location.origin so 
when trying to build the URL for the XMLHttpRequests in 
tunnelService.downloadStream and tunnelService.uploadToStream, the string 
"undefined" gets prepended onto the URL, rendering that functionality unusable.

The workaround/polyfill for this is pretty simple and well documented on the 
web and is basically:

{{if (!window.location.origin) {
  window.location.origin = window.location.protocol + '//' + 
window.location.hostname + (window.location.port ? (':' + window.location.port) 
: '');
}}}

reference: https://gist.github.com/hbogs/7908703

  was:
Internet Explorer, including 11, doesn't have support for location.origin so 
when trying to build the URL for the XMLHttpRequests in 
tunnelService.downloadStream and tunnelService.uploadToStream, the string 
"undefined" gets prepended onto the URL, rendering that functionality unusable.

The workaround/polyfill for this is pretty simple and well documented on the 
web and is basically:

if (!window.location.origin) {
  window.location.origin = window.location.protocol + '//' + 
window.location.hostname + (window.location.port ? (':' + window.location.port) 
: '');
}

reference: https://gist.github.com/hbogs/7908703


> File upload/download in IE
> --------------------------
>
>                 Key: GUACAMOLE-327
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-327
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-client
>    Affects Versions: 0.9.12-incubating
>            Reporter: Shaun Tarves
>
> Internet Explorer, including 11, doesn't have support for location.origin so 
> when trying to build the URL for the XMLHttpRequests in 
> tunnelService.downloadStream and tunnelService.uploadToStream, the string 
> "undefined" gets prepended onto the URL, rendering that functionality 
> unusable.
> The workaround/polyfill for this is pretty simple and well documented on the 
> web and is basically:
> {{if (!window.location.origin) {
>   window.location.origin = window.location.protocol + '//' + 
> window.location.hostname + (window.location.port ? (':' + 
> window.location.port) : '');
> }}}
> reference: https://gist.github.com/hbogs/7908703



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to