[Bug 14679] New: die with bad template path on item search because template file name has a period which is not a safe character
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@gmail.com Reporter: ajm@bom.gov.au QA Contact: testopia@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.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14679 --- Comment #1 from Anthony Moore <ajm@bom.gov.au> --- Created attachment 41488 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41488&action=edit koha-bom-get_template_and_user-regex.patch Attached proposed fix. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14679 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Anthony, could this be a duplicate of http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14450? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14679 --- Comment #3 from Anthony Moore <ajm@bom.gov.au> --- Sounds like it.. says that a fix is in 3.18.09, i'm on 3.18.08. I will try 09 and report back. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14679 Anthony Moore <ajm@bom.gov.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #4 from Anthony Moore <ajm@bom.gov.au> --- Katrin, This bug is fixed for me in version 3.18.09. Thanks for your help. *** This bug has been marked as a duplicate of bug 14450 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org