dosubot[bot] commented on issue #32886: URL: https://github.com/apache/superset/issues/32886#issuecomment-2758393687
<!-- Greeting --> Hey @ruifpedro! 👋 I'm here to help you with any bugs, questions, or contributions you have for Superset. Let's squash those bugs together! <!-- Answer --> I found a similar open issue that might be related to the problem you're experiencing. The issue is that when server pagination is enabled, Superset can result in multiple queries being executed, which leads to the results being bundled into a ZIP file. However, the email report attachment is still being labeled with a `.csv` extension instead of `.zip`. This is likely why you're seeing a "broken" CSV file that actually contains a ZIP archive with multiple CSV files inside. The suggested solution involves modifying the logic that assigns the file extension in the `Content-Disposition` header of the email attachment. The relevant code for setting the file extension is located in the `superset/utils/core.py` file, where the `filename` parameter is set. You may need to adjust the code to correctly set the file extension based on whether the results are being compressed into a ZIP file or not <sup>[[1]](https://github.com/apache/superset/issues/32858)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/3e3f898a-fbf2-473c-bab9-94c4c7fb7d99?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/3e3f898a-fbf2-473c-bab9-94c4c7fb7d99?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/3e3f898a-fbf2-473c-bab9-94c4c7fb7d99?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/3e3f898a-fbf2-473c-bab9-94c4c7fb7d99?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3e3f898a-fbf2-473c-bab9-94c4c7fb7d99?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/3e3f898a-fbf2-473c-bab9-94c4c7fb7d99?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3e3f898a-fbf2-473c-bab9-94c4c7fb7d99?feedback_type=other)</sup> -- 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]
