Bug 29053

Summary: ILSDI Internal Server errors seem not to log anywhere?
Product: Koha Reporter: Liz Rea <wizzyrea>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, jonathan.druart, wizzyrea
Version: 20.05   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Liz Rea 2021-09-18 15:53:05 UTC
Had a situation where ILSDI was throwing an internal server error, but none of the logs (plack-intranet-error, plack-error, intranet-error, plack-opac-error, opac-error, or really anywhere in /var/log/koha/instance/) seemed to be logging the errors.

I'd be happy to be wrong about this one lol.

Liz
Comment 1 Liz Rea 2021-09-18 15:54:08 UTC
The test case was a place hold via ilsdi, with a dateformat that was not in ISO format, which was a bug with the requesting software.
Comment 2 Jonathan Druart 2021-11-19 14:02:47 UTC
Looks good to me on master.

/cgi-bin/koha/ilsdi.pl?service=HoldItem&patron_id=1&bib_id=1&item_id=1&expiry_date=3214

I am getting a stacktrace in the logs

==> /var/log/koha/kohadev/plack-error.log <==                                                                                                                                                                        Invalid date '3214' passed to output_pref at /usr/share/perl5/Exception/Class/Base.pm line 88                                                                                                                                Exception::Class::Base::throw('Koha::Exceptions::WrongParameter', 'Invalid date \'3214\' passed to output_pref') called at /kohadevbox/koha/Koha/DateUtils.pm line 276