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 — Remove erroneous path normalization optimization + regression test by gnodet · Pull Request #12621 · apache/maven Conversation
Contributor
SummaryThis PR incorporates the fix from #12617 (by @desruisseaux) and adds the regression test requested in the review.
Supersedes #12617 (maintainer push was disabled on the fork, so the test could not be added directly to that PR). Test plan
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThat optimization can produce false positive if the pattern appears in the base directory. For example if the base directory is "something/target/test-classes" and if an include or exclude pattern is "**/test-classes" where "test-classes" is another directory as a child of the base directory, the optimization would always consider that there is a match. …tches a pattern Constructs the exact scenario from the PR description: base directory "something/target/test-classes" with pattern "**/test-classes/**" would falsely match files in sibling directories when path relativization was skipped. Co-Authored-By: Claude Opus 4.6 <[email protected]>
gnodet
marked this pull request as ready for review
gnodet
commented
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. LGTM — clean, well-tested bugfix that removes a flawed path-relativization optimization introduced in #10935. The first commit (from desruisseaux via #12617) correctly fixes the false-positive matching by making relativization unconditional, and the second commit adds a precise regression test covering the exact scenario (base directory containing The commit structure properly preserves attribution while superseding #12617 (which lacked a test and had maintainer push disabled). The regression test is well-constructed: it verifies both the true-positive case (file inside a CI full-build checks pass on all platforms (macOS/Windows/Linux, JDK 17/21/25). Integration tests still pending at time of review. This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying. Claude Code on behalf of gnodet
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
gnodet
added a commit
that referenced
this pull request
…zation Forward-port of #12621 from maven-4.0.x to master. The optimization skipped path relativization when all include/exclude patterns started with "**". This produced false positives when the base directory path itself contained a segment matching the pattern (e.g., base = "something/target/test-classes" with pattern "**/test-classes/**" would match every file under the base directory). Added a regression test for the exact false-positive scenario. Original fix by: Martin Desruisseaux (@desruisseaux) Closes #12622
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
bug
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. |