https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42998

--- Comment #4 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 205298
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205298&action=edit
Bug 42998: (QA follow-up) Reject a malformed requested due_date cleanly

A due_date that passes the swagger date-time format check (which
permits an instant with no timezone offset) but fails Koha's own
stricter RFC3339 parser was falling through to dt_from_string's
uncaught exception, producing a generic 500 instead of a clear 400.

Wrap the parse and return render_invalid_parameter_value on failure,
and cover it with a test.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to