Comments (1)
A little research later:
we found in this file /stackable/app/lib64/python3.9/site-packages/superset/queries/saved_queries/commands/export.py
in class ExportSavedQueriesCommand
the function def _export
where the filename is build, that the model.schema
is an optional field.
However, the code doesn't handle it properly and gives the None-Type into secure_filename which then throws an exception since it can't handle the None-Type:
2024-01-30 14:53:10,852:ERROR:flask_appbuilder.api:normalize() argument 2 must be str, not None
Traceback (most recent call last):
File "/stackable/app/lib64/python3.9/site-packages/flask_appbuilder/api/__init__.py", line 110, in wraps
return f(self, *args, **kwargs)
File "/stackable/app/lib64/python3.9/site-packages/superset/views/base_api.py", line 127, in wraps
raise ex
File "/stackable/app/lib64/python3.9/site-packages/superset/views/base_api.py", line 121, in wraps
duration, response = time_function(f, self, *args, **kwargs)
File "/stackable/app/lib64/python3.9/site-packages/superset/utils/core.py", line 1526, in time_function
response = func(*args, **kwargs)
File "/stackable/app/lib64/python3.9/site-packages/flask_appbuilder/api/__init__.py", line 182, in wraps
return f(self, *args, **kwargs)
File "/stackable/app/lib64/python3.9/site-packages/superset/queries/saved_queries/api.py", line 271, in export
for file_name, file_content in ExportSavedQueriesCommand(
File "/stackable/app/lib64/python3.9/site-packages/superset/commands/export/models.py", line 59, in run
for file_name, file_content in self._export(model, self.export_related):
File "/stackable/app/lib64/python3.9/site-packages/superset/queries/saved_queries/commands/export.py", line 45, in _export
schema_slug = model.schema
File "/stackable/app/lib64/python3.9/site-packages/werkzeug/utils.py", line 218, in secure_filename
filename = unicodedata.normalize("NFKD", filename)
TypeError: normalize() argument 2 must be str, not None
from superset.
Related Issues (20)
- Multiple issues with time range dashboard native filters HOT 2
- RedisCache lost support for function as a key_prefix HOT 1
- Form issue on Row level security HOT 1
- update dependancy debian/postgresql-15 15.5-0+deb12u1 to 15.6 in superset 3.1.0 HOT 1
- missing canvg and html2canvas dependencies when building using docker-compose HOT 1
- ssl_cert_req is missing an "s" HOT 1
- Wrong URL `/chart/list/[object%20Object]` called HOT 1
- Superset build issue HOT 3
- Superset import-datasources -r : No Such Option HOT 4
- ModuleNotFoundError: No module named 'flask_cors' HOT 3
- Unable to save a query as a new dataset HOT 1
- Remove Python 3.9 support HOT 1
- Docker *-dev tag's are not targetting the dev stage of Dockerfile HOT 8
- Superset Row Limit - not updating in web ui HOT 2
- Table list becoming buggy in sql lab when there is a table view
- Uncaught runtime errors when opening the dashboard CSS editor
- Unable to delete dashboards HOT 10
- Supserset Forbidden on SQLLab HOT 1
- CVE-2023-46104 and CVE-2024-23952 - duplicate reports
- shillelagh error: 'str' object has no attribute 'items' in superset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.