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

Report all occurences of a vulnerability. #6972

Merged

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Jan 18, 2024

The ADM vulnerability support reports were not complete. For a given vulnerable artifact (group:artifact:version), SOME location where it was used (or recursively included by other artifact) was reported. All paths - direct dependencies that introduce the vulnerable piece (although recursively) should be reported IMHO.

This PR changes the processing, so it reports all occurrences of a vulnerability.

During testing, I discovered that Maven DependencyResult does not react properly to unsaved document changes. It is fixable, but maven Embedder module's friend API should be extended, which I'd like to defer to NB22. Tracked as #6973.

A related patch in the LSP TextDocumentServiceImpl is related to #6971, which I hope will be fixed in NB22: a workaround that allows to embed an unique ID into the diagnostic code intended originally to be reported in client.

@sdedic sdedic added LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests enterprise [ci] enable enterprise job labels Jan 18, 2024
@sdedic sdedic added this to the NB21 milestone Jan 18, 2024
@sdedic sdedic self-assigned this Jan 18, 2024
@neilcsmith-net
Copy link
Member

As @MartinBalin is unavailable but has approved, I'll merge.

@neilcsmith-net neilcsmith-net merged commit ca960cf into apache:delivery Jan 23, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enterprise [ci] enable enterprise job LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants