GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — RRF: self-heal from provably broken auto-discovered prefixes files by ascheman · Pull Request #1976 · apache/maven-resolver Conversation
Contributor
apache/maven#11856 documented the "broken MRM" failure mode: a group/virtual repository leaks a member repository's We found a large public instance: Change: when an auto-discovered prefixes file denies a path, the first denial per repository is verified against the repository itself via First commit is the UT reproducing the Jenkins failure (red without the fix); second commit is the fix + docs. Note for Maven core: the Refs apache/maven#11856 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clean, well-bounded fix for a painful real-world problem. The design is sound: verify once per repository per session, only on the deny path, only for auto-discovered (not user-provided) prefixes. The bounded cost (at most one HEAD per repo per session) preserves the round-trip savings RRF provides in the normal case. Thread safety — Verified: the API compatibility — The constructor gained a Tests — Thorough coverage of all cases: core scenario (broken prefixes dropped), repository-wide propagation, bounded peek cost, accepted-path passthrough, disabled config, offline mode, and user-provided authority. Using the actual leaked Jenkins prefixes file as test data ties the tests directly to the reported incident. One suggestion: consider adding a test for the @Test void brokenPrefixesDroppedButNoInputOutcomeFalseStillDenies() throws Exception { session.setConfigProperty( PrefixesRemoteRepositoryFilterSource.CONFIG_PROP_NO_INPUT_OUTCOME, "false"); RemoteRepositoryFilter filter = subject.getRemoteRepositoryFilter(session); assertNotNull(filter); // prefixes are broken and dropped, but noInputOutcome=false means denial assertFalse(filter.acceptArtifact(remoteRepository, jenkinsArtifact).isAccepted()); // verification still happened (peek was called) verify(transporter, times(1)).peek(any(PeekTask.class)); } CI — Matrix still pending (just opened). One pre-existing flaky test ( Reviewed with oss-code-reviewer on behalf of @gnodet. This review was generated by an AI agent and may contain inaccuracies; please verify all suggestions before applying.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
gnodet
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for adding the Re CI: noted that master is red from #1970's awaitility changes — this PR's test-only commit 3 is unaffected. Will re-check once #1977/#1978 lands and you rebase. Reviewed with oss-code-reviewer on behalf of @gnodet. This review was generated by an AI agent and may contain inaccuracies; please verify all suggestions before applying.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Replays https://repo.jenkins-ci.org/public/.meta/prefixes.txt serving a leaked member-repo prefixes file (apache/maven#11856): well-formed, but denies everything the repository actually hosts. Red without the fix. Co-Authored-By: Claude Fable 5 <[email protected]> Verify the first denied path per repository against the repository itself (one peek, bounded); if it exists, the auto-discovered prefixes file is provably wrong: warn and ignore it for the session. User-provided files stay authoritative. Opt-out: -Daether.remoteRepositoryFilter.prefixes.verifyDenied=false Refs apache/maven#11856 Co-Authored-By: Claude Fable 5 <[email protected]> Documents the interaction suggested in review: a provably broken auto-discovered prefixes file is still detected and dropped (one peek), but noInputOutcome=false means the user asked for strict filtering, so the path stays denied. Co-Authored-By: Claude Fable 5 <[email protected]>
ascheman
force-pushed
the
rrf-verify-denied-prefixes
branch
from
07a0c6c to
d794e05
Compare
cstamas
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. provably -> probably
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or not?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intentional, not a typo: at that point the existence check has just proven the file wrong — it denies a path the repository demonstrably serves (that's the whole trigger condition, we never drop on suspicion). Happy to reword to "demonstrably wrong" if that reads less like a typo.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
cstamas
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page. AssigneesLabels
enhancement
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | ||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |