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 — Fix #1269: Report a clear message when resolving an artifact with no … by arturobernalg · Pull Request #2209 · apache/maven-resolver Conversation
Member
What and why
I reproduced this against the current The issue suggested either documenting the exception or failing fast when the request is built. Failing fast at construction time is not possible in general, because the input version can be a symbolic one ( How
Tests
To make clear that you license your contribution under
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet-bot
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. The fix is correct and properly validated. One dead branch in the guard condition worth cleaning up. ✅ Pre-fix validation: test confirmed failing before fix (no Backport note: This is a user-visible bug ( This review was generated by an AI agent, Hermès 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.
arturobernalg
force-pushed
the
fix/mresolver-597-empty-version-fail-fast
branch
from
a3d7bb9 to
c9c0ebf
Compare
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
gnodet-bot
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. Following up on my earlier review — the ✅ Pre-fix validation: The two new tests correctly exercise the guard: the stub version resolver echoes the artifact's own version, so blank and whitespace-only inputs reach the new check and produce the expected One minor nit remains (see inline). This review was generated by an AI agent, Hermès 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-bot
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. Following up on my earlier review — the ✅ Pre-fix validation: The two new tests correctly exercise the guard: the stub version resolver echoes the artifact's own version, so blank and whitespace-only inputs reach the new check and produce the expected One minor nit remains (see inline). This review was generated by an AI agent, Hermès 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. …th no version DefaultArtifactResolver accepted a VersionResult whose version was null or blank (as happens for an ArtifactRequest built from an Artifact with no version at all) and kept going, so the failure only surfaced later, as an opaque IllegalArgumentException from DefaultLocalPathComposer about an invalid relative path. Reject it right after the version is resolved, with an ArtifactNotFoundException that names the artifact and says its version is missing or blank. Also treat a whitespace-only version as blank, since it is just as unusable and would otherwise reach the path composer unchecked. Fixes MRESOLVER-597
arturobernalg
force-pushed
the
fix/mresolver-597-empty-version-fail-fast
branch
from
c9c0ebf to
19523fb
Compare
gnodet-bot
approved these changes
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. Re-review after the latest commit (19523fb) — the previous finding has been addressed. ✅ Addressed: The fix is clean and ready to merge:
💡 Suggestion: Consider backporting to This review was generated by an AI agent, Hermès on behalf of @gnodet.
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.
2 tasks done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers+1 more reviewerUh 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. |