Skip to content

Conversation

superbuggy
Copy link
Collaborator

@superbuggy superbuggy commented Jul 9, 2025

OSIDB-4350 Fix for wrong affects being fetched

Checklist:

  • Commits consolidated
  • [ ] Changelog updated
  • [ ] Test cases added/updated
  • [ ] Integration tests updated
  • Jira ticket updated

Summary:

Corrects field name in url params

Changes:

Corrects field name in url params

Considerations:

Closes OSIDB-4350

@superbuggy superbuggy added internal Skip Jira CI and removed internal Skip Jira CI labels Jul 9, 2025
@superbuggy superbuggy requested a review from a team July 9, 2025 20:44

export async function getAffects(cveOrUuid: string) {
const field = isCveValid(cveOrUuid) ? 'cve_id' : 'flaw__uuid';
const field = isCveValid(cveOrUuid) ? 'flaw__cve_id' : 'flaw__uuid';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow that went totally unseen on the review, good catch!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lucky we did! I think #590 can help to solve this potential hazard

MrMarble
MrMarble previously approved these changes Jul 10, 2025
@superbuggy superbuggy merged commit f064cfc into main Jul 10, 2025
5 checks passed
@superbuggy superbuggy deleted the fix/OSIDB-4266-split-affect-flaw-requests branch July 10, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants