Skip to content

[Issue]: A vulnerability with non-existent supporting asset is shown with error even when there is no visible issue. #352

@Alvin-JohnPagente

Description

@Alvin-JohnPagente

Issue Description

When an xml or sra file contains a vulnerability with non-existent supporting asset reference, the vulnerability is shown with error but there is no visible indicator.

In an sra, the snippet of a supportingAssetRef array contains "7" which does not exist.

        "supportingAssetRef": [
          1,
           3,
          7
       ]

In the Vulnerabilities tab, Vuln 2 is in red which indicates an error:

Image

The supporting assets are correctly chosen, but the section title is red

Image

When the file is saved, an error indicating an invalid supporting asset is shown

Image

Duplicate Steps

  1. Open the attached sra file. The same issue occurs with xml.
  2. Navigate to Vulnerabilities tab > Vuln 2
  3. Notice the parts in red indicating an error
  4. Save the file, a dialog box pops up with an error as described in the description

sample_SupportingAsset_Issue351_sra.zip

Expected Results

If a supporting asset ref in the vulnerabilities tab is not valid, remove it.
If all mandatory fields are complete, there should be no item in red and saving the file should have no error related to the vulnerability.

Version Detected

1.2.0

Attachments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglowLow priority

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions