[Koha-devel] next version of module URI causing issues

Philippe Blouin philippe.blouin at inlibro.com
Fri Jan 6 23:13:19 CET 2023


Hello all,

Promoting some installation from Debian 10.10 to 11.6, and Koha 21.05 to 
22.05, I encountered a new issue with ES indexing:

Can't use string (\"Bareword \"URI::HAS_RESERVED_SQUA\"...) as a HASH 
ref while \"strict refs\" in use at 
MYGIT/Koha/SearchEngine/Elasticsearch/Indexer.pm line 147.\n

I haven't seen anything in Bugzilla, so I figured I'd first explain my 
findings.

Module URI, starting with 5.11, requires some setup to behave "like 
before" : 
https://metacpan.org/release/OALDERS/URI-5.17/view/lib/URI.pm#URI_HAS_RESERVED_SQUARE_BRACKETS

Firstly: I have NO idea how I got version 5.17 installed.  All my other 
debian installs of the past two months have 5.08 installed, and my 
Ubuntu's are at 5.10.

But with the latest, there's no way to index with ES.  The 
background_jobs entries for update_elastic_index all have the above error.

I forced-version my way out of it.  But I figured it might be something 
to be careful about for the next packages.

happy weekend!

-- 
Philippe Blouin,
Directeur de la technologie

Tél.  : (833) 465-4276, poste 230
philippe.blouin at inLibro.com

inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20230106/b73417ea/attachment.htm>


More information about the Koha-devel mailing list