DefectDojo / django-DefectDojo

DevSecOps, ASPM, Vulnerability Management. All on one platform.
https://defectdojo.com
BSD 3-Clause "New" or "Revised" License
3.61k stars 1.52k forks source link

Cant re-activate Inactive, Mitigated, False Positive finding: test_retroactive_edit_finding #8977

Open JoBaBe opened 10 months ago

JoBaBe commented 10 months ago

Bug description The integration test "test_retroactive_edit_finding" fails, because a finding with the status "Inactive, Mitigated, False Positive" cant be activated again.

Steps to reproduce

  1. Run test_retroactive_edit_finding

Expected behavior Test "test_retroactive_edit_finding" will run without errors.

Deployment method (select with an X)

Environment information

Logs

django-defectdojo-nginx-1         | 192.168.65.1 - - [13/Nov/2023:08:28:36 +0000] "GET /finding/90 HTTP/1.1" 200 25219 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "-"
django-defectdojo-uwsgi-1         | [pid: 26|app: -|req: -/-] 192.168.65.1 (admin) {58 vars in 1184 bytes} [Mon Nov 13 08:28:39 2023] GET /finding/90/edit => generated 106497 bytes in 93 msecs (HTTP/1.1 200) 9 headers in 394 bytes (1 switches on core 1)
django-defectdojo-nginx-1         | 192.168.65.1 - - [13/Nov/2023:08:28:39 +0000] "GET /finding/90/edit HTTP/1.1" 200 14469 "http://localhost:8080/finding/90" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "-"
django-defectdojo-uwsgi-1         | [pid: 27|app: -|req: -/-] 192.168.65.1 (admin) {66 vars in 1373 bytes} [Mon Nov 13 08:28:47 2023] POST /finding/90/edit => generated 0 bytes in 111 msecs (HTTP/1.1 302) 10 headers in 471 bytes (1 switches on core 1)
django-defectdojo-nginx-1         | 192.168.65.1 - - [13/Nov/2023:08:28:47 +0000] "POST /finding/90/edit HTTP/1.1" 302 0 "http://localhost:8080/finding/90/edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "-"
django-defectdojo-uwsgi-1         | [13/Nov/2023 08:28:47] ERROR [dojo.finding.views:646] error_no_jira_project
django-defectdojo-uwsgi-1         | [pid: 26|app: -|req: -/-] 192.168.65.1 (admin) {60 vars in 1367 bytes} [Mon Nov 13 08:28:47 2023] GET /finding/90 => generated 159974 bytes in 112 msecs (HTTP/1.1 200) 10 headers in 492 bytes (1 switches on core 0)
django-defectdojo-nginx-1         | 192.168.65.1 - - [13/Nov/2023:08:28:47 +0000] "GET /finding/90 HTTP/1.1" 200 25309 "http://localhost:8080/finding/90/edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "-"
django-defectdojo-uwsgi-1         | [pid: 26|app: -|req: -/-] 192.168.65.1 (admin) {56 vars in 1018 bytes} [Mon Nov 13 08:28:57 2023] GET /alerts/count => generated 14 bytes in 44 msecs (HTTP/1.1 200) 8 headers in 236 bytes (1 switches on core 1)
django-defectdojo-nginx-1         | 192.168.65.1 - - [13/Nov/2023:08:28:57 +0000] "GET /alerts/count HTTP/1.1" 200 14 "http://localhost:8080/finding/90" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "-"
manuel-sommer commented 7 months ago

Can you do a PR for that?