Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear error message when user with insufficient rights tries to download csv from saved search in dashboard #58096

Closed
EmilBode opened this issue Feb 20, 2020 · 6 comments
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

Comments

@EmilBode
Copy link

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:

  1. Enable xpack-security, create a user that can see data and a dashboard, but who does not have the "reporting_user" role
  2. Create a dashbaord that shows a saved search
  3. As the user from step 1 , navigate to the dashboard, click on the Options button (the three circles/dots), click "Download CSV"

Result
2 messages appear in quick succession in the lower right corner:

  1. A green-topped message "V CSV Download started","Your CSV will download momentarily"
  2. A red-topped message "/!\ CSV Download failed"/"We couldn't generate your CSV at this time"

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.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@miguelednon
Copy link

It happened the same to me whe I was trying to export a CSV report with filters on the search bar. I workarounded it using +Add Filter instead and it worked out for me.

@tas-kmanager
Copy link

The work around provided by @miguelednon works but this is a really weird issue.

@tsullivan tsullivan added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:AppServices and removed Team:Reporting Services labels Dec 17, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@tsullivan tsullivan added Team:Reporting Services enhancement New value added to drive a business result labels Feb 25, 2021
@tsullivan
Copy link
Member

This is solved in #94966

@anoopm89
Copy link

It happened the same to me whe I was trying to export a CSV report with filters on the search bar. I workarounded it using +Add Filter instead and it worked out for me.

Hi, Could you please elaborate on the work around. Even though the issue is resolved as per comment, we won't get it soon as we are still using old version of Kibana.

@sophiec20 sophiec20 added Feature:Reporting:CSV Reporting issues pertaining to CSV file export and removed (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead (Deprecated) Team:Reporting Services labels Aug 21, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

8 participants