graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Export CSV doesn't work on IE\Edge

Open jonattta opened this issue 10 years ago • 8 comments

Expected Behavior

When i click on Export CSV button it should Export a csv file.

Current Behavior

When using Microsoft IE or Edge the button does not work.

Possible Solution

Steps to Reproduce (for bugs)

Install Graylog v2.1.1, ensure HTTPS is enabled, try to click on button "Export CSV" using Internet Explorer or Edge.

Context

Although it works for Chrome, for companies that enforces the use of Microsoft browsers the feature doesn't seem to work. For instance, last time i tried using Edge, the a tag generated for Export CSV that didn't work was:

<a tabindex="-1" role="menuitem" href="https://956fda1c-6cc4-4d24-9e12-cb07bfc28518:[email protected]:443/api/search/universal/relative/export?query=%2A&amp;range=300&amp;fields=source%2Cmessage" data-reactid=".0.2.1.0.$/=10.0.0.1.0.2.2.0.$/=11.$export/=1$export.0">Export as CSV</a>

Your Environment

  • Graylog Version: 2..1.1
  • Elasticsearch Version: 2.2.0
  • MongoDB Version: 3
  • Operating System: Ubuntu 14.04 (Graylog server) /Windows 10 (client)
  • Browser version: Internet Explorer 11 or Microisoft Edge

jonattta avatar Nov 16 '16 02:11 jonattta

Hi @jonattta,

As you mentioned, the CSV export should work in IE 11 and Edge. Could you please share with us any errors you may find in your IE11 or MS Edge developer tools while doing the CSV export?

edmundoa avatar Nov 16 '16 09:11 edmundoa

No errors on Developer Tools console, the button simply does nothing, completely inactive.

jonattta avatar Nov 16 '16 11:11 jonattta

@edmundoa additionaly, i just tried with Safari Version 10.0 (12602.1.50.0.10) on a MAC OS Sierra and the following warning message has appeared: screen shot 2016-11-16 at 09 41 49

Maybe same sort of security issue makes IE to block any action?

jonattta avatar Nov 16 '16 11:11 jonattta

I was able to reproduce the issue on IE 11 but the F12 developer tools are very particular this is the only error that I got

image

eorochena avatar Nov 16 '16 13:11 eorochena

I confirmed and even standard setup (HTTP) presents the same problem and can't export CSV

jonattta avatar Nov 22 '16 13:11 jonattta

My guess is Internet Explorer probably does not support user names and passwords in Web site addresses (HTTP or HTTPS URLs). The CSV export coaches the browser to HTTP GET something like

https://92dc40b0-ed65-4317-a854-43dcc01fb67d:[email protected]/api/search/universal/relative/export?query=*&range=300&filter=streams:570b

and the request gets blocked on low level because of the included authentication information. It gets blocked because of security concerns. Nothing will show up on developer console.

mikkolehtisalo avatar Nov 29 '16 12:11 mikkolehtisalo

Confirmed. Safari considers this pattern as phishing: https://string:string@hostname You can switch that off in Safari Preferences: [ ] "Warn when visiting a fraudulent website".

This session parameter however could also be encoded in the url arguments: https://fc14b091-1600-4c38-9c20-d894e164c145:[email protected]/api

bbaassssiiee avatar Nov 30 '16 09:11 bbaassssiiee

This is indeed a limitation in IE, as described in this Microsoft support page: https://support.microsoft.com/en-us/kb/834489

edmundoa avatar Dec 21 '16 13:12 edmundoa