[Koha-bugs] [Bug 25967] New: Plugin upgrade should remove existing code before installing new code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 9 15:42:00 CEST 2020


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

            Bug ID: 25967
           Summary: Plugin upgrade should remove existing code before
                    installing new code
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Plugin architecture
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

At the moment, upgrading a plugin really means overwriting the existing plugin
files with new files.

This is fine for files that are added or modified, but it won't remove files
that have been deleted.

Of course, we don't necessarily know what files to delete when we're upgrading
a plugin, because we don't track the files, and the files can be a bit messy.

For instance, "/var/lib/koha/kohadev/plugins/Koha/Plugin/Com/ByWaterSolutions"
is the root for both KitchenSink and CoverFlow.

This is probably an infeasible idea due to existing installs, but just pointing
out the flaw in the plugin architecture.

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


More information about the Koha-bugs mailing list