https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44318 Bug ID: 44318 Summary: Koha::Util::Navigation::local_referer fails with older URI (Ubuntu 22.04) Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org Target Milestone: --- t/Koha/Util/Navigation.t, subtest "Tests for local_referer", fails on Ubuntu 22.04 (Jenkins job Koha_Main_U22) but passes on Debian 12/13 and Ubuntu 24.04. Koha::Util::Navigation::local_referer calls $uri->query_param_delete('logout.x') but only loads URI, not URI::QueryParam. Newer URI releases (5.30 in Debian 13) load URI::QueryParam on demand; older ones (5.10 in Ubuntu 22.04) do not, so the call dies with: Can't locate object method "query_param_delete" via package "URI::_generic" This also affects runtime behaviour on such systems (language switcher, login redirects). Test plan: 1. On Ubuntu 22.04 (liburi-perl 5.10) run: prove t/Koha/Util/Navigation.t 2. Before the patch: the "Tests for local_referer" subtest dies with the error above. 3. Apply the patch: all tests pass. 4. On Debian 12/13 or Ubuntu 24.04 the test passes before and after. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.