Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.6RC3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
This is a regression. Previous versions of jruby-complete.jar didn't percent-escape spaces in the paths.
$ pwd
/tmp
$ java -jar jruby-complete.jar -v
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-29 ab3899a) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
$ java -jar jruby-complete.jar -r set -e 'p $LOAD_PATH'
["file:/private/tmp/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8", "file:/private/tmp/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared", "file:/private/tmp/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8", "."]
$ mkdir "path with spaces"
$ mv jruby-complete.jar path\ with\ spaces
$ java -jar path\ with\ spaces/jruby-complete.jar -r set -e 'p $LOAD_PATH'
org.jruby.exceptions.RaiseException: (LoadError) no such file to load – set
$ java -jar path\ with\ spaces/jruby-complete.jar -e 'p $LOAD_PATH'
["file:/private/tmp/path%20with%20spaces/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8", "file:/private/tmp/path%20with%20spaces/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared", "file:/private/tmp/path%20with%20spaces/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8", "."]
$
Issue Links
- is duplicated by
-
JRUBY-5337
No such file to load -- rack when booting JRuby 1.6.0RC1 Rails app in Tomcat
-
- is related to
-
JRUBY-5287
With spaces in it's path, jruby-complete can't find rubygems.rb
-
- relates to
-
JRUBY-5345
require 'ffi' breaks in windows jar when the path to the jar contains spaces/special chars
-
pushed in d4a6279