Skip to content

Fix problems with spaces in path names under windows #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tillsc
Copy link

@tillsc tillsc commented Jul 15, 2025

Avoid IllegalArgumentException from new URI(...) by using getRawSchemeSpecificPart() to preserve correct escaping (e.g., for spaces in Program Files).
This occurred for example when running java -jar "my_app.war" -S rake -T under windows.

I left this.path unchanged because it's unclear what other parts of the code expect there.
Instead, I extract a separate pathWithoutMain for URI construction.

@@ -0,0 +1 @@
require 'warbler'
Copy link
Member

Choose a reason for hiding this comment

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

I guess this wasn't meant to go into the commit, but was a way of testing out the change locally.

Copy link
Author

Choose a reason for hiding this comment

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

You're absolutely right. Sorry... Is't a bit hard to test since the :git bundler dependencies aren't working...

@@ -6,5 +6,5 @@
#++

module Warbler
VERSION = "2.0.5"
VERSION = "2.0.5-pre"
Copy link
Member

Choose a reason for hiding this comment

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

I guess this wasn't meant to go into the commit, but was a way of testing out the change locally.

Copy link
Member

Choose a reason for hiding this comment

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

Same with the gemspec.

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.

2 participants