[Koha-bugs] [Bug 29121] New: Plugins with broken ->install prevent access to the plugins list

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 27 13:16:56 CEST 2021


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

            Bug ID: 29121
           Summary: Plugins with broken ->install prevent access to the
                    plugins list
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Plugin architecture
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org

If a plugin is badly coded, like adding a table in their install method,
without checking it doesn't exist first, the plugins home page gives a 500
error.

To reproduce:
1. Install any plugin you like
2. Restart plack
=> SUCCESS: All good
3. Manually change its install method to:

sub install {
    die "plugin, die!";
}

4. Run:
   $ koha-mysql kohadev
   > DELETE FROM plugin_data;
(to make sure there's no __INSTALLED__ entry, do on a safe to delete DB).
5. Point your browser to the plugins-home.pl page
=> FAIL: Boom

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list