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

Clair parser: fixes TypeError: string indices must be integers #4120

Merged
merged 3 commits into from
Mar 25, 2021

Conversation

alles-klar
Copy link
Contributor

@alles-klar alles-klar commented Mar 25, 2021

Current parser is broken and throws Server Error 500 / "TypeError: string indices must be integers" when uploading a scan.

Also adding some unittests.


On behalf of DB Systel GmbH

Also adding some unittests.

On behalf of DB Systel GmbH
dojo/tools/clair/parser.py Outdated Show resolved Hide resolved
dojo/unittests/tools/test_clair_parser.py Show resolved Hide resolved
@damiencarol
Copy link
Contributor

@alles-klar what bug are you trying to fix?
is your PR a draft (not finished)? please mark it as draft if so.

@alles-klar
Copy link
Contributor Author

@damiencarol PR is ready from my perspective. Since #3827 the clair parser doesn't work at all and you get "TypeError: string indices must be integers".

@damiencarol
Copy link
Contributor

@alles-klar good job!

@damiencarol damiencarol changed the title fix(parser): clair Clair parser: fixes TypeError: string indices must be integers Mar 25, 2021
@damiencarol damiencarol added this to the 1.14.0 milestone Mar 25, 2021
@valentijnscholten valentijnscholten merged commit c45c3da into DefectDojo:dev Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants