<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>57104</bug_id>
          
          <creation_ts>2025-12-03 12:59:13 +0300</creation_ts>
          <short_desc>Не работает поиск по содержимому файла в catfish</short_desc>
          <delta_ts>2025-12-04 18:52:00 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>catfish</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Новопольцев Дмитрий">novopoltsevdv</reporter>
          <assigned_to name="Антон Мидюков">antohami</assigned_to>
          <cc>antohami</cc>
    
    <cc>george</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>278344</commentid>
    <comment_count>0</comment_count>
      <attachid>20242</attachid>
    <who name="Новопольцев Дмитрий">novopoltsevdv</who>
    <bug_when>2025-12-03 12:59:13 +0300</bug_when>
    <thetext>Created attachment 20242
fulltext search fix

Alt kworkstation p11
Alt kworkstation p10
catfish 1.4.10-1.20.1

Воспроизведение:
В бургер-меню включить &quot;Показать содержимое файла&quot; и выполнить поиск

Ожидаемый результат:
Успешно выполняется поиск по содержимому

Фактический результат:
Бесконечная загрузка поиска, ошибка в консоли

Решение:
В https://git.altlinux.org/gears/c/catfish.git?p=catfish.git;a=blob;f=catfish-4.20.1-ALT-searchODF.patch;h=2a4a6bbb170b387291e3ba74ac8af288f1f4114d;hb=a27d0aa7a34e821b9b3e7019960f432149c8a10c#l51 необходимо заменить guess_type на mimetypes.guess_type</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278372</commentid>
    <comment_count>1</comment_count>
    <who name="Новопольцев Дмитрий">novopoltsevdv</who>
    <bug_when>2025-12-03 15:53:40 +0300</bug_when>
    <thetext>&gt; catfish 1.4.10-1.20.1
Исправление: речь о версиях 1.4.10-4.20.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278404</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-12-03 21:10:04 +0300</bug_when>
    <thetext>catfish-4.20.1-alt2 -&gt; sisyphus:

Wed Dec 03 2025 Anton Midyukov &lt;antohami@altlinux&gt; 4.20.1-alt2
- Fix a program crash when using the &quot;Search file contents&quot; option
  (Closes: 57104)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278480</commentid>
    <comment_count>3</comment_count>
    <who name="Новопольцев Дмитрий">novopoltsevdv</who>
    <bug_when>2025-12-04 15:32:29 +0300</bug_when>
    <thetext>Alt kworkstation p11
catfish 1.20.1-alt2

Проблема не воспроизводится, поиск по содержимому работает</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>20242</attachid>
            <date>2025-12-03 12:59:13 +0300</date>
            <delta_ts>2025-12-03 12:59:13 +0300</delta_ts>
            <desc>fulltext search fix</desc>
            <filename>catfish.patch</filename>
            <type>text/plain</type>
            <size>606</size>
            <attacher name="Новопольцев Дмитрий">novopoltsevdv</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2NhdGZpc2gtNC4yMC4xLUFMVC1zZWFyY2hPREYucGF0Y2ggYi9jYXRmaXNo
LTQuMjAuMS1BTFQtc2VhcmNoT0RGLnBhdGNoCmluZGV4IDJhNGE2YmIuLmJlZDEwNjIgMTAwNjQ0
Ci0tLSBhL2NhdGZpc2gtNC4yMC4xLUFMVC1zZWFyY2hPREYucGF0Y2gKKysrIGIvY2F0ZmlzaC00
LjIwLjEtQUxULXNlYXJjaE9ERi5wYXRjaApAQCAtNDgsNyArNDgsNyBAQCBpbmRleCA0YWQxOWNj
Li43YWMzNDI2IDEwMDY0NAogIAogICAgICAgICAgICAgIGZvciBmaWxlbmFtZSBpbiBmaWxlczoK
ICsgICAgICAgICAgICAgICAgaWYgc2VsZi5mb3JjZV9zdG9wOiBicmVhawotKyAgICAgICAgICAg
ICAgICBtaW1lID0gZ3Vlc3NfdHlwZShmaWxlbmFtZSlbMF0gb3IgIjw8VU5LTk9XTj4+IgorKyAg
ICAgICAgICAgICAgICBtaW1lID0gbWltZXR5cGVzLmd1ZXNzX3R5cGUoZmlsZW5hbWUpWzBdIG9y
ICI8PFVOS05PV04+PiIKICsgICAgICAgICAgICAgICAgZm5hbWUgPSBvcy5wYXRoLmpvaW4ocm9v
dCwgZmlsZW5hbWUpCiArICAgICAgICAgICAgICAgIGlmIG5vdCBvcy5wYXRoLmlzZmlsZShmbmFt
ZSk6IGNvbnRpbnVlCiAgICAgICAgICAgICAgICAgIHRyeToK
</data>

          </attachment>
      

    </bug>

</bugzilla>