Altinn / altinn-file-scan

Microservice for handling file scan
MIT License
0 stars 0 forks source link

Scan retries for blobs that no longer exist #43

Closed acn-sbuad closed 5 months ago

acn-sbuad commented 1 year ago

Description of the bug

If an end user uploads a data elements and triggers a file scan, but deleted the file before the scan is completed, the dataElement will be retried 5 times without luck.

Should be able to identify that blob no longer exists and stop execution.

A bit of an edge case, but it can happen and result in an unnecessary loard on the system. Should be handled when time allows.

Steps To Reproduce

  1. Disable filescan function
  2. Upload file to an app with filescan enabled
  3. Delete file
  4. Enable filescan function
  5. See error i filescan function logs

Additional Information

No response

SandGrainOne commented 5 months ago

Not prioritized as it doesn't happen often enough to be a serious issue.