Download button on reports page always downloads same file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
21.04 |
Fix Released
|
High
|
Unassigned |
Bug Description
Description:
When generating a report in /admin/
Steps to replicate:
1. Go to the Reports page and click Configure Report
2. Find a report that will generate some data e.g. 'Account details'. Select a date range and click Submit.
3. Click 'Download' at the bottom of the page - view the file and look at the contents, also note the total file size on your computer
4. Find a different report that will generate some data, find an appropriate date range and click Submit
5. Click 'Download' again and view the file
Observed results:
The second generated file has the exact same contents as the first one. It has the exact same filesize as the first also. Essentially the resulting file doesn't reflect the newly-run report in any way. It's as if the first file that is generated is held in cache and can't be overwritten by a new report.
Expected results:
The second generated file contains the results of the second report that was run
Additional notes:
This happens regardless of the date range and report type. You could select the same report and try generating two lots of results with different date ranges - the exact same file (the very first one) will still be downloaded.
no longer affects: | mahara/21.10 |
Hi Phil,
Thank you for your report. We know the problem: one report download has the same name as one other. I don't think we have a patch public yet, so will add it as soon as we have it. It would be fantastic if you tried it out then.
Thank you
Kristina