ThreatMapper
ThreatMapper copied to clipboard
[v2] Download and delete scan button are active for running scans
Describe the bug Download and delete scan button are active for running scans. Also, active scan deletion causes 500 status page to show up
To Reproduce Steps to reproduce the behavior:
- Start a vulnerability scan on any host/image
- Go to 'Vulnerabilities' section and click on 'View all Scans'
- Click on the latest running scan that was just started
- Click on the download button to download the xlsx report. Then, click on the delete button while the scan is still running. 500 page should show up.
Expected behavior Active scans should either not be downloadable/deletable or the error on deletion should be shown and download should give a warning that active scans might give 0 results.
Screenshots
Components/Services affected
- [x] UI/Frontend
- [x] API/Backend
- [ ] Agent
- [ ] Deployment/YAMLs
- [ ] CI/CD Integration
- [ ] Other (specify)
Additional context Add any other context about the problem here.
This is fixed in: https://github.com/deepfence/ThreatMapper/pull/1325