Skip to content

File path canonicalization still broken inside jars on Windows #4692

@presidentbeef

Description

@presidentbeef

Despite #4647 and earlier patches, this issue persists.

As previously, please see https://github.com/presidentbeef/jruby-realpath-error and the simple reproduction steps therein.

I hate to keep mentioning this, but due to this issue we are still stuck releasing on JRuby 1.7.

Expected Behavior

On Linux with JRuby 9.1.11.0:

$ java -jar myapp.jar
"uri:classloader:/lib/test.rb"
"classpath:/jar-bootstrap.rb"

Actual Behavior

On Windows with JRuby 9.1.11.0:

> java -jar myapp.jar
LoadError: no such file to load -- classpath:c:/lib/test
           require at org/jruby/RubyKernel.java:961
  require_relative at uri:classloader:/jruby/kernel/kernel.rb:13
            <main> at classpath:/jar-bootstrap.rb:1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions