You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "giuseppecg (via GitHub)" <gi...@apache.org> on 2024/05/15 14:20:04 UTC

[I] Published Dashboard without charts can only be reached by owners [superset]

giuseppecg opened a new issue, #28515:
URL: https://github.com/apache/superset/issues/28515

   ### 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
   
   1. create a dashboard with only text boxes, tabs, and/or any layout feat
   2. Publish this dashboard
   3. Use the other account and search for the dash name on the dash tab and it should not appear
   4. Use the other account to try to access this dashboard and this should return an unexpected error on the front
   
   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)
   ...
   
   
   5. come back to the first user and add any chart, can be a `select 1` dataset.
   6. Now the second user must be able to access the dashboard 
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   3.1.3
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   the issue occured on all browsers, the version I can't select the correct one
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Published Dashboard without charts can only be reached by owners [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #28515: Published Dashboard without charts can only be reached by owners
URL: https://github.com/apache/superset/issues/28515


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Published Dashboard without charts can only be reached by owners [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #28515:
URL: https://github.com/apache/superset/issues/28515#issuecomment-2112683262

   <!-- Greeting -->
   Hey there, @giuseppecg! 👋 I'm [Dosu](https://dosu.dev), your friendly neighborhood bot, here to lend a hand with bugs, answer questions, and guide you on your way to becoming a contributor while we wait for a human maintainer to join in. Just wanted to let you know I'm diving into your issue about dashboards without charts and will get back to you shortly with some insights or advice! Stay tuned. 😊
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Published Dashboard without charts can only be reached by owners [superset]

Posted by "ampil (via GitHub)" <gi...@apache.org>.
ampil commented on issue #28515:
URL: https://github.com/apache/superset/issues/28515#issuecomment-2826804170

   Confirming this on 4.1.1
   
   How to reproduce:
   1. Create a dashboard with markdown textboxes only
   2. Use a gamma role or create a custom role 'reader' with the following permissions:
   <details>
     <summary>Permissions</summary>
     
   ```
   permission_view_id: 
   26; 28; 31; 33; 36; 37; 38; 39; 40; 41; 46; 49; 59; 60; 61; 62; 63; 73; 78; 92; 99; 101; 102; 104; 105; 107; 109; 112; 113; 115; 117; 130; 131; 134; 136; 139; 141; 147; 150; 157; 167; 168; 169; 43; 128 
   ```
   
   ![Image](https://github.com/user-attachments/assets/f4487761-8125-4b2c-b135-af39fcfe5637)
     
   </details>
   
   3. Create new user with a gamma or reader roles.
   4. Open the dashboard from 1.
   5. Confirm error on opening the dashboard
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Published Dashboard without charts can only be reached by owners [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #28515:
URL: https://github.com/apache/superset/issues/28515#issuecomment-2738388312

   Not sure if this is still an issue in 4.x, but we're no longer supporting 3.x, and this issue has been untouched in almost a year, so we'll close it as inactionable. Happy to revisit/reopen if you can provide updated context.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org