Menu

#119 204 when scan fails

0.5.x
open
nobody
None
1
2019-09-04
2019-09-04
No

I get 204 when c-icap fails to connect clamd via socket during c-icap startup.

Steps to reproduce:
two ways,
wrong startup order

  1. prerequisities: working clamd/c-icap installation. Tested with CentOS 7 system
  2. disable clamd and c-icap services
  3. reboot system
  4. start c-icap and wait until it fully starts
  5. start clamd
  6. test using c-icap-client with eicar or actual virus file
    • actual result: 204, and "Registry 'virus_scan::engines' does not exist!" and "Antivirus engine is not available, allow 204" mesages on server.log
      expected result: blocks file

c-icap does not have access to socket

  1. install clamav and c-icap, run as different users , use socket connection
  2. make sure that c-icap does not have access to clamd socket
  3. test using c-icap-client with eicar or actual virus file
  4. actual result: 204, and "Registry 'virus_scan::engines' does not exist!" and "Antivirus engine is not available, allow 204" mesages on server.log
    • expected result: blocks file

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB