You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET /api/v1/chart/ endpoints doesn't return charts with guest token but does for a logged user with the same role.
How to reproduce the bug
Start superset with Gamma as GUEST_ROLE_NAME;
As admin add datasource access to Gamma role;
As admin create a user with Gamma role, check that this user can see at least one chart, use this user token to call GET /api/v1/chart/?q=(order_column:changed_on_delta_humanized,order_direction:desc,page:0,page_size:25) and check that you see at least one chart
As admin craft a guest token (with RLS in my case), check token roles, check that the guest token allows access to dashboard and /explore and /api/v1/chart/data for at least one chart.
Use Guest token to call GET /api/v1/chart/?q=(order_column:changed_on_delta_humanized,order_direction:desc,page:0,page_size:25)
Expected results
Response to GET /chart with guest token is empty.
Actual results
Response to GET /chart should be the same as the one from the user with the same Gamma role.
Environment
superset 2.1.0 deployed using the helm chart on kubernetes
GET /api/v1/chart/
endpoints doesn't return charts with guest token but does for a logged user with the same role.How to reproduce the bug
GET /api/v1/chart/?q=(order_column:changed_on_delta_humanized,order_direction:desc,page:0,page_size:25)
and check that you see at least one chart/explore
and/api/v1/chart/data
for at least one chart.GET /api/v1/chart/?q=(order_column:changed_on_delta_humanized,order_direction:desc,page:0,page_size:25)
Expected results
Response to GET /chart with guest token is empty.
Actual results
Response to GET /chart should be the same as the one from the user with the same Gamma role.
Environment
superset 2.1.0 deployed using the helm chart on kubernetes
check token roles
Retrieve chart
The text was updated successfully, but these errors were encountered: