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

Incidents in the log have a different date than the modification date of the documents #14

Open Enygma2002 opened 5 years ago

Enygma2002 commented 5 years ago

Because the incidents are currently recorded at the end of the execution of the AntivirusJob, all incidents recorded from an execution will have roughly the same date, which may also be different from the exact modification date of the documents from where attachments have been deleted (for example).

To fix this, we need to make sure that each incident is logged at the same time as the action is taken (e.g. when deleting attachments from a document, when saving the documents, the log incidents should also be recorded, so their dates are in synch).