Skip to content

Fix SCM URL normalization for queries and scp URLs - #344

Open
efegokdemir wants to merge 2 commits into
apache:masterfrom
efegokdemir:efe/scm-url-normalization
Open

efegokdemir wants to merge 2 commits into
apache:masterfrom
efegokdemir:efe/scm-url-normalization

Conversation

@efegokdemir

Copy link
Copy Markdown
Contributor

Fixes #335. ModelInheritanceAssembler.appendPath now normalises URL paths without changing query strings or fragments, preserves scp-like SCM connections, and appends child paths before URL suffixes. mvn -Prun-its verify passed on JDK 21 (61 unit tests and 12 integration tests); mvn spotless:check passed.


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following:

Preserve query and fragment suffixes when normalising URL paths, and avoid treating scp-like SCM connections as file-system paths.\n\nFixes apache#335

@elharo elharo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this using String operations instead of a URL parser like java.net.URI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants