https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41159
Bug ID: 41159
Summary: A plugin with an invalid date_updated causes the whole
plugin page to crash
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Plugin architecture
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Koha expects (in
koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt) for the plugin
metadata to be a valid date (parsed using dt_from_string in Koha::DateUtils).
This isn't ever checked beforehand though, so installing a plugin with a broken
date (I built
https://codeberg.org/tadzik/KohaBreaker/releases/tag/0.1-broken-date for
demonstration) results in the following exception being thrown:
Template process failed: undef error - The given date (2025-10-310) does not
match the date format (iso)
I'm not sure what would be the right time to verify the metadata structure –
install time sounds like a good time? At the same time it'd be nice if the
error wasn't this catastrophic, so that if such plugin were to be installed one
way or another, it shouldn't blow up the whole plugins page.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/