Open giuseppecg opened 3 months ago
The issue you're encountering with dashboards without charts not being accessible to users with the gamma role seems to stem from how Superset manages dashboard visibility and access permissions. In Superset, access to dashboards is controlled by user roles, permissions, and checks for administrative status or ownership. Specifically, the gamma role is designed to limit access to only those data sources and the associated dashboards and charts that the user has been explicitly given access to. Since dashboards without charts do not have any associated data sources, they might not be visible to gamma users based on the current permission setup.
The 404 Not Found error you're seeing when a gamma user attempts to access a dashboard without charts is likely due to the system's inability to find a valid permission set that allows access to the dashboard. The workaround you've discovered, adding an empty chart to make the dashboard accessible, aligns with this understanding, as it introduces a data source to the dashboard, potentially making it visible to gamma users based on their permissions for that data source.
To address this issue, it might be necessary to explore modifications to the Superset codebase or configuration to allow gamma users access to dashboards without associated data sources. This approach, however, would require a deeper dive into the specifics of Superset's permission handling mechanisms and might not be straightforward depending on your setup and requirements.
This explanation is based on the current understanding of Superset's security model and the behavior you've described. If you have further questions or need more detailed assistance, please feel free to ask.
To continue the conversation, mention @dosu.
Bug description
We've are communicating templates in our company through dashboards without charts, but already with text boxes, tabs, etc. But we can't spread adoption because we need to always add new owners.
To bypass this we are leaving a empty chart so the dashboard becomes available
It seems to me it's because of the gamma role setup and the lack of chart, the dash is blocked, but not quite.
How to reproduce the bug
Version 3.0.2
You'll need at least 2 users with gamma and a single db connection should do. Both of them would have access to this same DB
Looking at the logs you should find this error
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request return werkzeug.utils.send_from_directory( # type: ignore[return-value] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request raise NotFound() return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ...
select 1
dataset.Screenshots/recordings
No response
Superset version
3.0.2
Python version
3.9
Node version
16
Browser
Chrome
Additional context
the issue occured on all browsers
Checklist