messere1 opened a new issue, #1694: URL: https://github.com/apache/rocketmq-dashboard/issues/1694
### Description In mock-data mode, `exportGrafanaDashboards()` serializes an array with `JSON.stringify`, but wraps those bytes in a Blob labeled `application/zip`. `GrafanaDashboardList` always downloads the result as `rocketmq-grafana-dashboards.zip`. The downloaded file is plain JSON rather than a ZIP archive, so archive tools report it as corrupt. This makes the bulk-export demo path misleading even though individual dashboard export works. ### Expected behavior Mock mode should download the generated bundle as a correctly typed `.json` file. Real mode should continue downloading the server-provided ZIP archive as `.zip`. ### Actual behavior Mock JSON bytes are labeled and named as ZIP. ### Proposed fix Return bulk-export content together with its intended filename from the service. Use JSON MIME type and filename in mock mode, preserve the ZIP filename in real mode, and cover both service and component download behavior. -- 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]
