Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

SCM URL normalization mishandles query strings, fragments and scp-like URLs

Open Beginner friendly
#335 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
build-system

Research direction

Start at ModelInheritanceAssembler.appendPath, named in the issue, and inspect how it normalizes SCM URLs. Check the cases where .. appears in a query or fragment and where the URL is scp-like; the issue gives before-and-after examples. Done means both forms retain the intended URL components, with behavior covered by focused tests.

Written by the indexing model from the issue text.

Description

bug

ModelInheritanceAssembler.appendPath normalizes everything after :// as a path, which mishandles two kinds of SCM URL:

  • A .. in a query string or fragment is resolved against the path: http://host/repo?p=a/../b becomes http://host/b.
  • An scp-like URL has no ://, so its scheme and host become path segments: scm:git:[email protected]:org/../repo.git becomes repo.git.

Both behave the same before and after #334, which fixed the other normalization cases from #274. Cutting the query and fragment off before normalizing, and leaving host:path forms alone, would cover them.

Dominant language
Java
Stars
17
Forks
20
Avg merge
12h 3m
Merged PRs (30d)
22

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-remote-resources-plugin

All issues in apache/maven-remote-resources-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.