Bug 41159 - A plugin with an invalid date_updated causes the whole plugin page to crash
Summary: A plugin with an invalid date_updated causes the whole plugin page to crash
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Plugin architecture (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-31 13:35 UTC by HKS3 Tadeusz Sośnierz
Modified: 2025-10-31 13:35 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HKS3 Tadeusz Sośnierz 2025-10-31 13:35:29 UTC
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.