Skip to content

[Issue]: Inform the user when the Vulnerabilities supporting assets are cleaned up on opening the XML and sra #350

@Alvin-JohnPagente

Description

@Alvin-JohnPagente

Issue Description

#348 implemented the cleanup of empty Vulnerability supporting assets when opening an xml or sra.

NOTE: The PR was implemented post 1.2.0. Update the detected version once the version with the change is released.

Duplicate Steps

  • Take an existing XML
  • Find one occurrence of my:supportingAssetRef, edit it to insert empty support asset ref between non-empty ones. For example,
    my:supportingAssetRef1</my:supportingAssetRef>my:supportingAssetRef</my:supportingAssetRef>my:supportingAssetRef4</my:supportingAssetRef>my:supportingAssetRef5</my:supportingAssetRef>my:supportingAssetRef</my:supportingAssetRef>
  • Save the XML
  • Open the XML in sratool
  • The document will open without any errors.
  • Go to the Vulnerabilities tab, open the vulnerability, and check there are no supporting assets with empty text beside the checkbox

Expected Results

The user should be informed when a vulnerability is cleaned up. The message should include the specific Vulnerability ID and how many supporting assets were removed.

Version Detected

1.2.0

Attachments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions