<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hello,<br /><br /></p>
<p>I've recently stumbled upon an error in fts-solr plugin.<br />Dovecot sends "rows" parameter to solr when someone is searching in mailbox, but value of rows can be bigger than int in java.<br />If I understand correctly, rows is equal to the last message id on current imap folder.<br />I have mailbox where last uid value is 2206267083 and when I tried to search in this mailbox I got error 400 - Bad Request.</p>
<p>On a Solr side I got an error:<br />java.lang.NumberFormatException: For input string: "2206267083"<br />NumberFormat expect an int which max value is 2147483647.<br /><br />Quick test reviles that rows parameter isn't required for correct response from solr.<br />I think that dovecot should check if the value of rows is a correct int, and if not, just skip this argument.</p>
<p>Dovecot version: 2.3.11.3 (502c39af9)<br />Solr version: 8.7.0</p>
<p><br /></p>
<div id="signature">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">------------------<br />Łukasz Szczepański<br />+48 58 3509284<br /><a href="http://www.webd.pl" target="_blank" rel="noopener noreferrer">www.webd.pl</a><br />Globtel Internet</div>
</div>
</body></html>