[Koha-bugs] [Bug 14679] New: die with bad template path on item search because template file name has a period which is not a safe character
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 14 07:56:43 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14679
Bug ID: 14679
Summary: die with bad template path on item search because
template file name has a period which is not a safe
character
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Searching
Assignee: gmcharlt at gmail.com
Reporter: ajm at bom.gov.au
QA Contact: testopia at bugs.koha-community.org
Summary:
When performing an item search in the intranet interface, KOHA dies with "bad
template path at /usr/share/koha/lib/C4/Auth.pm line 161". This is because
get_template_and_user is called with a template_name of
"catalogue/itemsearch.csv.tt", and $safe_chars does not have the ASCII period
character.
Steps to reproduce:
1. Login to intranet interface
2. Click on Search on top bar
3. Click on Goto Item Search
4. Perform any item search to CSV
Expected results:
Search works and returns search results.
Actual results:
KOHA dies with the message in the summary.
Suggested fix:
Expand the $safe_chars regex on lib/C4/Auth.pm line 160 to include ASCII period
('.') as a valid character.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list