Skip to content

Fix support for SSH-style Git URLs (fixes #1204)#1205

Open
vadi2 wants to merge 1 commit intoHL7:masterfrom
vadi2:claude/investigate-fhir-issue-1204-01BMNm1rEKZXAeLPD6yD3Ghv
Open

Fix support for SSH-style Git URLs (fixes #1204)#1205
vadi2 wants to merge 1 commit intoHL7:masterfrom
vadi2:claude/investigate-fhir-issue-1204-01BMNm1rEKZXAeLPD6yD3Ghv

Conversation

@vadi2
Copy link
Copy Markdown
Contributor

@vadi2 vadi2 commented Dec 5, 2025

Add handling for SSH-style Git URLs like git@github.com:org/repo.git in getURLWithNoUserInfo(). These URLs are not valid according to java.net.URL parsing, but are safe to return as-is since they don't contain embedded credentials (they use SSH keys).

The fix adds a regex check to detect SSH URL format before attempting standard URL parsing.

Add handling for SSH-style Git URLs like git@github.com:org/repo.git
in getURLWithNoUserInfo(). These URLs are not valid according to
java.net.URL parsing, but are safe to return as-is since they don't
contain embedded credentials (they use SSH keys).

The fix adds a regex check to detect SSH URL format before attempting
standard URL parsing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants