Bug 18473

Summary: Search broken due to bug in dates handling
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: Architecture, internals, and plumbingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 17502    
Bug Blocks:    

Description Tomás Cohen Arazi 2017-04-21 13:49:25 UTC
To reproduce:
- Have a clean install:
  $ SKIP_WEBINSTALLER=1 CREATE_ADMIN_USER=1 vagrant up
- Log in
- Use the 'Search catalog' tab, search the letter a
=> FAIL: Internal server error
koha-plack-err shows:
Template process failed: undef error - The given date (04/01/2017) does not match the date format (iso) at /usr/share/koha/lib/Koha/DateUtils.pm line 152.
Comment 1 Tomás Cohen Arazi 2017-04-21 13:52:49 UTC
I've just imported a bunch of MARC records into the catalog, and the problem vanished, might be related.
Comment 2 Jonathan Druart 2017-04-21 15:55:49 UTC
I do not recreate with an existing install (removed zebra index and biblios).
Comment 3 Tomás Cohen Arazi 2017-04-21 18:28:01 UTC
I've just discovered that there was a problem in kohadevbox that made it fail to load the git clone's libs, and used the packaged ones. That was the root cause for this. Now that I fixed kohadevbox, I can no longer reproduce the issue.