owncloud / files_antivirus

:space_invader: virus scanner for ownCloud
GNU Affero General Public License v3.0
48 stars 30 forks source link

[QA] unclear icap behaviour without enterprise license #530

Closed jnweiger closed 1 year ago

jnweiger commented 1 year ago

Seen with files_antivirus 1.2.1-rc.1 (probably not a regression)

Expected behaviour:

jnweiger commented 1 year ago

Same with camav icap without ever entering an enterprise license:

jnweiger commented 1 year ago

Without enterprice license and after the grace period is expired, the three different ICAP flavours behave as follows:

grafik

grafik

grafik McAfee + Skyhigh ICAP mode just works

pako81 commented 1 year ago

The problem seems to be around https://github.com/owncloud/files_antivirus/blob/master/lib/AppConfig.php#L192 as currently the check is done against the icap class only.

Modifying it like:

if (
       $key === 'av_mode'
       && ($value === 'icap'|| $value === 'fortinet' || $value === 'mawgw')
       && !$this->licenseManager->checkLicenseFor($this->appName, ["disableApp" => false])
 )

will make the license check to take place for all three classes.

pako81 commented 1 year ago

Proposed possible fix in https://github.com/owncloud/files_antivirus/pull/534