Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@chadlwilson
Copy link
Collaborator

@chadlwilson chadlwilson commented Nov 3, 2025

Description of Change

Consolidates the many FP suppressions for graphql-java CPE into a single negative lookahead. There is a single package that represents this project and its CPE.

Related issues

Have test cases been added to cover the new functionality?

N/A - note merging to generated/hosted suppressions only

@jeremylong
Copy link
Collaborator

I realized we've likely messed up the generated suppression and the base suppression files with a few of these PRs. We have, in several releases, copied the contents of the generated suppression into the base suppression file. This is done to support users who operate in an offline mode. As such, an PR that has updated just the generated suppressions has likely left the original suppressions in the base suppression file shipped with ODC.

@chadlwilson
Copy link
Collaborator Author

Yeah, I have been meaning to discuss that. I don't really think it has screwed anything up generally (as we are augmenting suppressions rather than dealing with false negatives), but it has made it more indeterministic and practically impossible to reduce the breadth of a suppression in a predictable manner.

Personally I don't really like the practice of copying the suppressions across, as it makes the suppressions even more impossible to maintain than they already are. It's made even worse because

  • they are across two branches you can't even see together at the same time easily
  • there is no practical way you can ever de-duplicate that accounts for old ODC versions with new hosted-suppressions AND newer ODC with stale/offline hosted suppressions ... without creating gaps

In my opinion, if the intent is to support offline for hosted suppressions at build time we should automatically fetch and package an exact snapshot of the hosted suppressions file. At runtime, that would be used to pre-populate the configured data directory location's cache (if it is newer than the current version), and the files are kept entirely separate, and predictably updated every official release; so not duplicating rules intentionally across both.

Or we just stop supporting that offline thing entirely and treat it the same way as other online data sources? If you need to run offline you need to sort out out your own practice for updating the hosted suppressions just like you have to for NVD?

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.

2 participants