[Koha-bugs] [Bug 11317] Add a way to access files from the intranet
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 12 21:42:39 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11317
--- Comment #135 from Roch D'Amour <roch.damour at inlibro.com> ---
Created attachment 74119
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74119&action=edit
Bug 11317: Make filename unicode-proof, renamed accessdir to access_dir and fix
db update
This patch does many small things :
- Added "INSERT IGNORE" in the atomic update
- Renamed accessdir to access_dir
- Now decode the filename to utf8 to make sure the stat() method point at it.
Test plan:
1. Define <access_dir>/tmp/koha-public</access_dir> in your koha_conf
2. change dir to /tmp/koha-public
3. create a file with a normal name, i.e. echo "bonjour koha" > testfile.txt
4. create a file with a name containing a unicode character, i.e. touch hi❤.txt
5. Go in the "Reports" section in the intranet and select "Report/log files"
6. Verify that the filename "hi❤.txt" looks fine
7. Click on the "testfile.txt" file, a download dialog should appear.
8. Download the file and verify its content. It should contain the text
"bonjour koha".
Sponsored by : CCSR
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list