[Koha-bugs] [Bug 31684] Plugin versions starting with a "v" cause unnecessary warnings

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 5 14:49:23 CEST 2022


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

--- Comment #2 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 141380
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=141380&action=edit
Bug 31684: Plugin versions starting with a "v" cause unnecessary warnings

Our code assumes that plugin version will be purely numeric ( e.g. 1.2.3 ) but
many plugin authors ( including myself ) use the format "v1.2.3".
This causes warnings as we use a numeric comparison on the version numbers.
It could make sense to check for and strip any v's from the beginning of the
version.

Test Plan:
1) Apply the first patch to set the test plugin's version to v1.01
2) prove t/db_dependent/Koha/Plugins/Plugins.t
3) Note the warnings and test failures
4) Apply this patch
5) prove t/db_dependent/Koha/Plugins/Plugins.t
6) All tests pass!

-- 
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