Skip to content
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

Remove weaknesses from view which are not in DB #1256

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

TG1999
Copy link
Contributor

@TG1999 TG1999 commented Aug 2, 2023

The problem with the CWE data is that there is no error handling when we try to access weakness using this weakness = self.db.get(self.cwe_id). For say CWE-189 which is a weakness associated with CVE-2009-3389 is not present in cwe2.database.

@TG1999 TG1999 requested a review from pombredanne August 2, 2023 18:54
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
vulnerabilities/models.py Outdated Show resolved Hide resolved
vulnerabilities/models.py Show resolved Hide resolved
vulnerabilities/views.py Outdated Show resolved Hide resolved
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999 TG1999 merged commit 0290bf0 into aboutcode-org:main Aug 3, 2023
5 checks passed
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.

3 participants