[Bug 42151] New: Downloaded report have no extension if the title contain quote
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42151 Bug ID: 42151 Summary: Downloaded report have no extension if the title contain quote Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Reports Assignee: koha-bugs@lists.koha-community.org Reporter: marion.durand@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: lisette@bywatersolutions.com If we create a report with a quote (") in the title, if we try to download the results the title is truncated and the file have no extension. This is confusing to users and make it difficult to open the file. Step to reproduce : 1- Create an SQL report Make sure the title of the report contain at least one quote (") (The content of the report doesn't matter) 2- Run the report 3- Click "Download" then "Comma separated text (.csv)" or "Tab separated text 4- Check that the downloaded file name doesn't have and extension (the title stop at the first " symbol). 5- Edit the report to remove all quotes in the title 6- Repeat step 2 and 3 7- Check that the report now have the proper extension -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42151 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #1 from David Cook <dcook@prosentient.com.au> --- Hmm I can't reproduce. I created this report title: This is "What to do" when testing When I download it, this is the filename I get: 2-This is _What to do_ when testing -reportresults.csv -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42151 --- Comment #2 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #1)
Hmm I can't reproduce.
I created this report title: This is "What to do" when testing
When I download it, this is the filename I get: 2-This is _What to do_ when testing -reportresults.csv
Ok so that's testing in Chrome. When I test with Firefox, I get this: 2-This is -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42151 --- Comment #3 from David Cook <dcook@prosentient.com.au> --- We'll need to sanitize the filename in some way. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42151 --- Comment #4 from Marion Durand <marion.durand@biblibre.com> --- Ho I didn't realize it could be navigator specific. I use Firefox and haven't test any other. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org