iercan opened a new issue #18220: URL: https://github.com/apache/superset/issues/18220
After upgrading to 1.4.0 we are not able to save as a dashboard with duplicate chart option. This is the error shown in the logs. It gives the same error on all dashboards I tried. > superset_1 | 'NoneType' object has no attribute 'roles' superset_1 | Traceback (most recent call last): superset_1 | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request superset_1 | rv = self.dispatch_request() superset_1 | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request superset_1 | return self.view_functions[rule.endpoint](**req.view_args) superset_1 | File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 148, in wraps superset_1 | return f(self, *args, **kwargs) superset_1 | File "/app/superset/utils/log.py", line 240, in wrapper superset_1 | value = f(*args, add_extra_log_payload=log, **kwargs) superset_1 | File "/app/superset/utils/decorators.py", line 104, in wrapper superset_1 | raise exception superset_1 | File "/app/superset/utils/decorators.py", line 100, in wrapper superset_1 | current_app.appbuilder.sm.raise_for_dashboard_access(dashboard) superset_1 | File "/app/superset/security/manager.py", line 1180, in raise_for_dashboard_access superset_1 | for dashboard_role in dashboard.roles superset_1 | AttributeError: 'NoneType' object has no attribute 'roles' superset_1 | 2022-01-28 21:10:43,139:ERROR:superset.views.base:'NoneType' object has no attribute 'roles' superset_1 | Traceback (most recent call last): superset_1 | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request superset_1 | rv = self.dispatch_request() superset_1 | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request superset_1 | return self.view_functions[rule.endpoint](**req.view_args) superset_1 | File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 148, in wraps superset_1 | return f(self, *args, **kwargs) superset_1 | File "/app/superset/utils/log.py", line 240, in wrapper superset_1 | value = f(*args, add_extra_log_payload=log, **kwargs) superset_1 | File "/app/superset/utils/decorators.py", line 104, in wrapper superset_1 | raise exception superset_1 | File "/app/superset/utils/decorators.py", line 100, in wrapper superset_1 | current_app.appbuilder.sm.raise_for_dashboard_access(dashboard) superset_1 | File "/app/superset/security/manager.py", line 1180, in raise_for_dashboard_access superset_1 | for dashboard_role in dashboard.roles superset_1 | AttributeError: 'NoneType' object has no attribute 'roles' #### How to reproduce the bug 1. Open a dashboard 2. Click save as option 3. Choose duplicate charts and save ### Expected results New dashboard should be created by duplicating charts ### Actual results Process fails ### Environment (please complete the following information): - browser type and version: chrome 97 - superset version: 1.4.0 deployed with official image -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
