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
We did Superset upgrade from 1.5.3 version to 2.1.0 version.
Post upgrade in version 2.1.0, a user with Gamma + sql_lab role cannot open a new editor tab
How to reproduce the bug
Go to 'SQL'
Click on 'SQL Lab' and then Click on 'Add a new tab'
See the error "unable to add a new table to the backend"
Expected results
A new table should be added allowing to select databases to query
Actual results
"unable to add a new table to the backend" error pops up
Screenshots
Backend logs:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1517, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1503, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 181, in wraps
return f(self, *args, **kwargs)
File "/app/superset/views/sql_lab/views.py", line 150, in post
database_id=query_editor["dbId"],
KeyError: 'dbId'
Environment
browser type and version:
superset version: 2.1.0
python version: 3.8
node.js version: NA
any feature flags active:
Checklist
Make sure to follow these steps before submitting your issue - thank you!
I have checked the superset logs for python stacktraces and included it here as text if there are any.
I have reproduced the issue with at least the latest released version of superset.
I have checked the issue tracker for the same issue and I haven't found one similar.
Additional context
We are testing Superset upgrade from 1.5.3 version to 2.1.0 version
The text was updated successfully, but these errors were encountered:
User didn't had access to any database, hence superset wasn't able to map any dbId to editor.
After giving database access on xxxx permissions, the issue is resolved.
In case someone finds this issue years later and had the same issue as me: This also happens when you try to open SQL Lab without having first created a database connector. Create one first. Then SQL Lab will work just fine. ;-)
We did Superset upgrade from 1.5.3 version to 2.1.0 version.
Post upgrade in version 2.1.0, a user with Gamma + sql_lab role cannot open a new editor tab
How to reproduce the bug
Expected results
A new table should be added allowing to select databases to query
Actual results
"unable to add a new table to the backend" error pops up
Screenshots
Backend logs:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1517, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1503, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 181, in wraps
return f(self, *args, **kwargs)
File "/app/superset/views/sql_lab/views.py", line 150, in post
database_id=query_editor["dbId"],
KeyError: 'dbId'
Environment
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
We are testing Superset upgrade from 1.5.3 version to 2.1.0 version
The text was updated successfully, but these errors were encountered: