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

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

    <bug>
          <bug_id>52001</bug_id>
          
          <creation_ts>2024-11-09 09:25:29 +0300</creation_ts>
          <short_desc>127.0.0.1 127.0.0.1 OPTIONS url_filter 500</short_desc>
          <delta_ts>2024-11-09 09:25:29 +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>netpolice-filter</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Aleksandr Sysoev">sysoevas</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>254174</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksandr Sysoev">sysoevas</who>
    <bug_when>2024-11-09 09:25:29 +0300</bug_when>
    <thetext>server-11.0.alpha20240611-x86-64 обновленный до Sisyphus

# rpm -qa | grep netpolice
netpolice-filter-1.01-alt5.1.x86_64
netpolice-main-1.02-alt3.2.x86_64

Настроил c-icap, указав ему использовать библиотеку srv_url_filter.so из пакета netpolice-filter: Service url_filter srv_url_filter.so. 
Настроил squid, конфиг из пакета squid-conf-host2cat.
Настроить host2cat. 

Сервис стартует успешно, однако:
# c-icap-client -s url_filter -i localhost -p 1344
ICAP server:localhost, ip:127.0.0.1, port:1344

OPTIONS:
	Allow 204: No
	Allow 206: No
	Preview: -1
	Keep alive: No

ICAP HEADERS:
	ICAP/1.0 500 Server error
	Server: C-ICAP/0.5.10
	Connection: close
	ISTag: &quot;CI0001-XXXXXXXXX&quot;

В логах /var/log/c-icap/access.log:
127.0.0.1 127.0.0.1 OPTIONS url_filter 500

При этом, если вместо url_filter c-icap настроить, например с Service echo srv_echo.so, то:
ICAP server:localhost, ip:127.0.0.1, port:1344
OPTIONS:
	Allow 204: Yes
	Allow 206: No
	Preview: 1024
	Keep alive: Yes

ICAP HEADERS:
	ICAP/1.0 200 OK
	Methods: RESPMOD, REQMOD
	Service: C-ICAP/0.5.10 server - Echo demo service
	ISTag: &quot;CI0001-XXXXXXXXX&quot;
	Transfer-Preview: *
	Options-TTL: 3600
	Date: Sat, 09 Nov 2024 06:13:49 GMT
	Preview: 1024
	Allow: 204
	X-Include: X-Authenticated-User, X-Authenticated-Groups
	Encapsulated: null-body=0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>