Unclear error message when user with insufficient rights tries to download csv from saved search in dashboard #58096
Labels
enhancement
New value added to drive a business result
Feature:Reporting:CSV
Reporting issues pertaining to CSV file export
needs-team
Issues missing a team label
triage_needed
Kibana version:: 7.5.1
Elasticsearch version:: 7.5.1
Server OS version:
ES server: Ubuntu 18.04.4 LTS
Kibana server: Windows 10 (64-bit)
Browser version:
Chrome 70.0.3538.77 (64-bit)
Browser OS version:
Windows 10 (64-bit)
Original install method (e.g. download page, yum, from source, etc.):
Download
Describe the bug:
When a user without the "reporting_user" role tries to download a csv of a saved search via a dashboard, there is an error message "CSV download failed", "We couldn't generate your CSV at this time", without any hint that this is a rights issue
Steps to reproduce:
Result
2 messages appear in quick succession in the lower right corner:
Expected behavior:
Either no option to "Download CSV" should be visible, or after clicking it the user should see a message "Sorry, you don't have the rights", "Forbidden", or something similar, indicating what the problem is.
Additional context
Note that when trying to generate a csv from the discover-screen (via share/CSV reports) a clear message is given (for generate report it's Reporting Error/Forbidden, for Copy post URL it returns a url that, when tried, gives a 403/"Sorry, you don't have access to reporting")
Under my setup, things work fine as soon as the user is assigned the "reporting_user" role.
The text was updated successfully, but these errors were encountered: