Repository navigation
Conversation
kireetivar
approved these changes
Dec 3, 2026
ankit2995
approved these changes
Dec 4, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The server reports
supersededIssueIdsto say a wider fix contains an earlier issue's fix. fcli trusted that by issue ID alone, and a superseded issue gets no fix entry of its own inremediations.xml. Take an earlier fix that changedA.javaandB.java, and a later fix that changes onlyA.javaand was declared to supersede it. fcli would drop the whole earlier fix, so itsB.javachange was lost. The issue was still counted as remediated.Change
In
SupersedeGraph.resolveDirectSupersededBy, fcli now accepts a supersede only if the superseding fix contains every change of the superseded fix, on every file../don't make a different file.This is a second check behind the server's own fix for the same bug (the server now compares all changes of the prior fix). It also protects against older servers that still send the label.
Tests
SupersedeGraphTest(6):B.javauncovered is not;testAuditCommentsNameTheFixThatIsWrittenWhenTheWiderFixCannotBeWrittenmade its wider fix unwritable by pointing it at a missing file, so the fix no longer contained the narrower one. It now uses a character XML doesn't allow, which keeps the original intent.When does it happen?
It needs three things together: a multi-file fix, a later finding whose request lacks one of those files, and a model that declares the supersede. This is uncommon, but when it happens the vulnerability stays unfixed while the report says it is remediated.