There is a bug in the code. Superset crashes when you are trying to open the Upload Excel form from a user account without all_database_access permissions.
Expected results
Upload Excel form opened and can be used for file upload.
Actual results
Superset crashes because of the absence of schemas_accessible_by_user() method in SupersetSecurityManager class. The error is in the superset/views/database/forms.py. Correct method name must be **get_**schemas_accessible_by_user()
Screenshots
Haven't made any, sorry:)
How to reproduce the bug
- Create database connection with upload support
- Create user with Gamma role + permission for Excel uploading + permission for database
- Try to open the Upload Excel form from the menu
- See the error
Environment
- superset version: 1.1.0 (but I see the same problem in 1.2.0 and master too)
- python version: 3.7.9
- node.js version: not relevant
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I can solve the problem by myself and make a pull request later. I've created this issue as it's written in CONTRIBUTING.md:
Before creating a PR, create an issue.
There is a bug in the code. Superset crashes when you are trying to open the Upload Excel form from a user account without
all_database_accesspermissions.Expected results
Upload Excel form opened and can be used for file upload.
Actual results
Superset crashes because of the absence of
schemas_accessible_by_user()method inSupersetSecurityManagerclass. The error is in thesuperset/views/database/forms.py. Correct method name must be**get_**schemas_accessible_by_user()Screenshots
Haven't made any, sorry:)
How to reproduce the bug
Environment
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I can solve the problem by myself and make a pull request later. I've created this issue as it's written in CONTRIBUTING.md: