Bug 41159

Summary: A plugin with an invalid date_updated causes the whole plugin page to crash
Product: Koha Reporter: HKS3 Tadeusz Sośnierz <tadeusz>
Component: Plugin architectureAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
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 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.