xwikisas / application-antivirus

Keeps your XWiki instance safe by scanning file attachments for viruses or malware.
GNU Lesser General Public License v2.1
0 stars 1 forks source link

Periodic scan is not changed by changing the CRON EXPRESSION in the Antivirus Job Scheduler #22

Closed ane-gabriela closed 4 years ago

ane-gabriela commented 4 years ago

Preconditions: The Mail sending should be configured.

Steps to reproduce:

  1. Log as Admin with proper email address set in profile
  2. Access the Job Scheduler page (/xwiki/bin/view/Scheduler)
  3. Edit the Antivirus Job AntivirusJob
  4. Change the "CRON EXPRESSION" eg. from default "59 59 23 ? 1 " (every Sun 23:59:59 CEST 2020) to "0 15 10 ?" (Fire at 10:15am every day) Default Changed
  5. Save & View
  6. Check the email address when the report email should be sent

Expected results: The scan is executed and the report email sent as configured. "To configure how often the periodic scan is performed (default is once per week), edit the "Antivirus Job"'s "cron expression" from the Scheduler Application's jobs index."

Actual results: No scan is executed with the new configuration. The email in this case was sent as per the default configuration - Sunday at 23.59 EmailRecived

Environment: Windows 10, Cloud demo instance XWiki 11.10.5, Antivirus Application 1.3

acotiuga commented 4 years ago

Hi @ane-gabriela! This is not an Antivirus app issue, but a Scheduler job behaviour. In order to get the expected result, a reschedule (Unschedule/Schedule) is needed.

ane-gabriela commented 4 years ago

Hi @acotiuga ! Thank you for your answer, indeed I've Unscheduled/Scheduled and the date is changed in the Job Scheduler page JobScheduler

Can anything be resolved for the use of the Antivirus app in this case? Or it will be left as a workaround, that we need to do this step every time we change the CRON EXPRESSION?

acotiuga commented 4 years ago

There is nothing that can or should be done in this particular case. Antivirus Job is the same as the others and this behaviour could be improvement in the Scheduler module.