-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a crash in the vulnerability details flyout #5200
Fix a crash in the vulnerability details flyout #5200
Conversation
…es` field could not be defined in the API response Ensure the `external_references` field is defined with the expected data structure as an array mapping each `affected_items` of the API response.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test
Test | |
---|---|
See the References of a vulnerability that has one or more references, it should display the accordion with the references. | 🟢 |
See the References of a vulnerability that has no references, it should display a - . |
🟢 |
See the References of a vulnerability that the references are not defined, it should display a - . |
🟢 |
Evidence
-
See the References of a vulnerability that has one or more references, it should display the accordion with the references.
-
See the References of a vulnerability that has no references, it should display a
-
.
-
See the References of a vulnerability that the references are not defined, it should display a
-
.
TEST:✔️
CR:✔️
LGTM
Wazuh dashboardLegend: UI
Details 🟢 See the References of a vulnerability that has one or more references, it should display the accordion with the references.Chrome - 🟢 Firefox - 🟢 Safari - ⚫ 🟢 See the References of a vulnerability that has no references, it should display a `-`.Chrome - 🟢 Firefox - 🟢 Safari - ⚫ |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.4-7.16 4.4-7.16
# Navigate to the new working tree
cd .worktrees/backport-4.4-7.16
# Create a new branch
git switch --create backport-5200-to-4.4-7.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 08fc532046f0148840d583383117a9d0dedf2bf6
# Push it to GitHub
git push --set-upstream origin backport-5200-to-4.4-7.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.4-7.16 Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.4-7.10 4.4-7.10
# Navigate to the new working tree
cd .worktrees/backport-4.4-7.10
# Create a new branch
git switch --create backport-5200-to-4.4-7.10
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 08fc532046f0148840d583383117a9d0dedf2bf6
# Push it to GitHub
git push --set-upstream origin backport-5200-to-4.4-7.10
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.4-7.10 Then, create a pull request where the |
* fix(vulnerability): fix a crash caused because the `external_references` field could not be defined in the API response Ensure the `external_references` field is defined with the expected data structure as an array mapping each `affected_items` of the API response. * changelog: add pull request entry (cherry picked from commit 08fc532)
* fix(vulnerability): fix a crash caused because the `external_references` field could not be defined in the API response Ensure the `external_references` field is defined with the expected data structure as an array mapping each `affected_items` of the API response. * changelog: add pull request entry (cherry picked from commit 08fc532)
…5205) Fix a crash in the vulnerability details flyout (#5200) * fix(vulnerability): fix a crash caused because the `external_references` field could not be defined in the API response Ensure the `external_references` field is defined with the expected data structure as an array mapping each `affected_items` of the API response. * changelog: add pull request entry (cherry picked from commit 08fc532)
…5204) Fix a crash in the vulnerability details flyout (#5200) * fix(vulnerability): fix a crash caused because the `external_references` field could not be defined in the API response Ensure the `external_references` field is defined with the expected data structure as an array mapping each `affected_items` of the API response. * changelog: add pull request entry (cherry picked from commit 08fc532)
* fix(vulnerability): fix a crash caused because the `external_references` field could not be defined in the API response Ensure the `external_references` field is defined with the expected data structure as an array mapping each `affected_items` of the API response. * changelog: add pull request entry
Description
This pull request fixes a UI crash when opening the details of a vulnerability that has no the
external_references
field.The changes ensure the field is defined and is an array.
If there is data related to external references, then a
-
will be displayedIssues Resolved
#5199
Evidence
Test
UI
-
.-
.crash-vulnerability-data-no-external-references.md
Imposter patch that adds some vulnerability data without the
external_references
field (calledCustom
andCustom2
).pr-5199-imposter.txt
Check List
yarn test:jest