<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p>Hello Philippe,<br>
<br>
It looks like this might be an issue with using the newer URI's _generic.pm with the older URI's URI.pm:<br>
<a href="https://github.com/libwww-perl/URI/issues/120" class="OWAAutoLink" id="LPlnk396306" previewremoved="true">https://github.com/libwww-perl/URI/issues/120</a><br>
<br>
Using a testing docker, I was able to edit a record to verify that it was able to index. I then upgraded the URI module with cpanm and edited the record again. This time I received the error. I then restarted the background worker and was able to edit the record
 without error.<br>
<br>
So, perhaps it's necessary to restart everything (including the background worker) after upgrading the URI module.<br>
<br>
/Kevin<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Från:</b> Koha-devel <koha-devel-bounces@lists.koha-community.org> för Philippe Blouin <philippe.blouin@inlibro.com><br>
<b>Skickat:</b> den 6 januari 2023 23:13<br>
<b>Till:</b> koha-devel@lists.koha-community.org<br>
<b>Ämne:</b> [Koha-devel] next version of module URI causing issues</font>
<div> </div>
</div>
<div>
<p>Hello all,</p>
<p>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:</p>
<p><font face="monospace">Can't use string (\"Bareword \<a class="moz-txt-link-rfc2396E" href="">"URI::HAS_RESERVED_SQUA\"</a>...) as a HASH ref while \"strict refs\" in use at MYGIT/Koha/SearchEngine/Elasticsearch/Indexer.pm line 147.\n</font></p>
<p>I haven't seen anything in Bugzilla, so I figured I'd first explain my findings.</p>
<p>Module URI, starting with 5.11, requires some setup to behave "like before" : <a class="moz-txt-link-freetext" href="https://metacpan.org/release/OALDERS/URI-5.17/view/lib/URI.pm#URI_HAS_RESERVED_SQUARE_BRACKETS">
https://metacpan.org/release/OALDERS/URI-5.17/view/lib/URI.pm#URI_HAS_RESERVED_SQUARE_BRACKETS</a></p>
<p>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.</p>
<p>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.</p>
<p>I forced-version my way out of it.  But I figured it might be something to be careful about for the next packages.<br>
</p>
<p>happy weekend!<br>
</p>
<div class="moz-signature">-- <br>
<div class="sig_inlibro">
<div class="sig_content"><span class="nom">Philippe Blouin,</span><br>
<span class="tagline small">Directeur de la technologie</span><br>
<p class="desc small">Tél.  : (833) 465-4276, poste 230<br>
<a href="mailto:philippe.blouin@inLibro.com" class="moz-txt-link-freetext">philippe.blouin@inLibro.com</a>
</p>
</div>
<div class="sig_footer"><span class="in">in</span><span class="libro">Libro</span>
<span class="tagline small">| pour esprit libre |</span> <a class="small" href="http://www.inLibro.com">
www.inLibro.com</a> </div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>