Closed GordianDziwis closed 1 year ago
Thanks for the report @BonaBeavis .
Can confirm this is a bug.
Where are the path for creating and reading the temp files created? I can look into this.
Looking at the error, it seems that we need to add some logic to sanitize the file extension.
The resource format attribute can sometimes be the full MIME type which contains a slash, and not just the extension.
@BonaBeavis , can you confirm and fix this?
Sure can you point me to the line, where the path is built?
Great!
The whole download section is here - check line 471 where we just grab resource.format.
Perhaps we should check that the resulting temp file is valid, and handle the case when the full MIME type is stored instead of just the file extension (e.g. application/csv
and not just csv
)
Thanks!!
Describe the bug
To Reproduce Steps to reproduce the behavior:
https://statistik.leipzig.de/opendata/api/values?kategorie_nr=5&rubrik_nr=2&periode=y&format=csv