Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.0, JRuby 1.0.1, JRuby 1.x+
-
Fix Version/s: JRuby 1.3RC1
-
Component/s: Core Classes/Modules, Windows
-
Labels:None
-
Environment:Windows
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
Pathname's realpath method was not properly handling drive letters in Windows, causing Rails initialization to fail in Edge (1.2.3.x) with errors like:
C:/jruby/jruby-1.0.1/lib/ruby/1.8/pathname.rb:420:in `realpath_rec': No such file or directory - C:/railstest/C: (Errno::ENOENT)
from C:/jruby/jruby-1.0.1/lib/ruby/1.8/pathname.rb:453:in `realpath'
from C:/jruby/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3.7605/lib/initializer.rb:494:in `set_root_path!'
from C:/jruby/jruby-1.0.1/lib/ruby/gems/1.8/gems/rails-1.2.3.7605/lib/initializer.rb:459:in `initialize'
from ./script/../config/boot.rb:44:in `new'
from ./script/../config/boot.rb:44:in `run'
from ./script/../config/boot.rb:44
from :1:in `require'
from :1
attached test shows failure in windows, patch fixes.
Issue Links
- relates to
-
JRUBY-1422
(patch) File.dirname('C:\\') returns incorrect results
-
The recently launched rails 1.2.4 doesn't work with jruby. This bug seems to be the cause.