Importing chart over API fails if the chart was built on top of a virtual dataset #13237
Closed
3 tasks done
Labels
!deprecated-label:bug
Deprecated label - Use #bug instead
inactive
Inactive for >= 30 days
viz:charts:import
Related to importing charts
Importing chart over API fails if the chart was built on top of a virtual dataset. I exported the chart with the
/chart/export
endpoint and then tried POSTing the resulting .zip to/chart/import
.Expected results
Expect chart to get uploaded successfully.
Actual results
How to reproduce the bug
/chart/export
endpoint with:curl -v --cookie "session=<your_cookie>" --output <filename>.zip http://<your_host>/api/v1/chart/export/?q=[<your_chart_id>]
curl 'http://<your_host>/api/v1/chart/import/' \ -X POST \ -H 'Cookie: session=<your_cookie>' \ -H "X-CSRF-Token: <your_csrf_token>" \ -F formData=@<filename>.zip \ -F overwrite=true \ --compressed \ --insecure
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: