When a vulnerability is used in two attack path in a risk, deleting first use and second use, will generate an error and makes the application freeze.
Duplicate Steps
Use attached file to reproduce.
There is one risk defined, with two attack paths (vuln1,vuln2) and (vuln1,vuln3).
First delete vuln1 from "Attack Path 1", then delete vuln1 from "Attack Path 2".
Application will then display the error message "Failed to delete Risk Attack Path2's vulnerabilityId: 2 for Risk 1", which is wrong as the we tried to delete the vulnerability of ID 1.
Than application freeze.
Expected Results
It should be possible to delete those vulnerability use normally.
Issue Description
When a vulnerability is used in two attack path in a risk, deleting first use and second use, will generate an error and makes the application freeze.
Duplicate Steps
Use attached file to reproduce.
There is one risk defined, with two attack paths (vuln1,vuln2) and (vuln1,vuln3). First delete vuln1 from "Attack Path 1", then delete vuln1 from "Attack Path 2". Application will then display the error message "Failed to delete Risk Attack Path2's vulnerabilityId: 2 for Risk 1", which is wrong as the we tried to delete the vulnerability of ID 1. Than application freeze.
Expected Results
It should be possible to delete those vulnerability use normally.
Version Detected
1.2.0
Attachments
sample.zip