You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you delete a package that have been deployed, you a line with "Unknown (deleted package)" on the deployment history of concerned computers
I clear this history with a SQL request : DELETE DH FROM download_history DH LEFT JOIN download_available DA on DH.PKG_ID = DA.FILEID WHERE DA.FILEID IS NULL;
The request works and the history is cleared.
The bug is that it appeared to be temporary : the next day the lines "Unknown (deleted package)" are back.
To Reproduce
Steps to reproduce the behavior:
create a deployment package
deploy the package on some computers
delete the package once it is deployed successfully
purge the download_history from the ID of the package deleted
wait one day
the lines are back
Expected behavior
the lines stays deleted
addendum
I have these cron jobs:
/usr/share/ocsinventory-reports/ocsreports/crontab/cron_cve.php
/usr/share/ocsinventory-reports/ocsreports/crontab/cron_cve_computer.php
The text was updated successfully, but these errors were encountered:
We do have a cron script in charge of clearing the history if the package has been deleted (cron_purge_history.php). However, even when using the script, I am able to reproduce the behavior you reported. We'll investigate the issue and keep you updated.
OCS Inventory version
Version : 2.11.1
Describe the bug
When you delete a package that have been deployed, you a line with "Unknown (deleted package)" on the deployment history of concerned computers
I clear this history with a SQL request :
DELETE DH FROM download_history DH LEFT JOIN download_available DA on DH.PKG_ID = DA.FILEID WHERE DA.FILEID IS NULL;
The request works and the history is cleared.
The bug is that it appeared to be temporary : the next day the lines "Unknown (deleted package)" are back.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the lines stays deleted
addendum
I have these cron jobs:
/usr/share/ocsinventory-reports/ocsreports/crontab/cron_cve.php
/usr/share/ocsinventory-reports/ocsreports/crontab/cron_cve_computer.php
The text was updated successfully, but these errors were encountered: