Skip to content

Accept file: URLs with a Windows path again - #778

Merged
slachiewicz merged 1 commit into
masterfrom
agent/windows-file-url
Nov 1, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/windows-file-url

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Since 2.5.0 (922e838) the plugin parses URL parameters with URI.create, which rejects the backslashes that file:///${project.build.directory}/… gets on Windows; new URL accepted them before. A file: URL that is not a valid URI is now built from its path, with slashes and quoted characters, in isStringUrl and getFromUrl. Other schemes still fail as before.

Fixes #615.

Verified: UrlRequesterTest → 8 tests pass; with the fallback disabled, 3 of the 4 new tests fail. I have not run it on Windows.

Since 2.5.0 the URL strings went through URI.create, which rejects the backslashes of a Windows path in file:///${project.build.directory}/file.txt. A file: URL that is not a valid URI is now built from its path.
@slachiewicz slachiewicz added the bug Something isn't working label Nov 1, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 1, 2026 20:31
@slachiewicz
slachiewicz merged commit 3c71f58 into master Nov 1, 2026
15 checks passed
@slachiewicz
slachiewicz deleted the agent/windows-file-url branch November 1, 2026 20:39
@github-actions github-actions Bot added this to the 2.8.0 milestone Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add-third-party fails on Windows with version 2.5.0

1 participant