JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-6627

File#open fails for file in a JAR with a "jar:" prefix in the path

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: Core Classes/Modules
    • Labels:
      None
    • Environment:
      jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-27 12065c3) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java]
    • Number of attachments :
      1

      Description

      The following test fails for the second assertion:

        def test_open_file_in_jar
          File.open('file:test/dir with spaces/test_jar.jar!/abc/foo.rb'){}
          File.open('jar:file:test/dir with spaces/test_jar.jar!/abc/foo.rb'){}
        end
      

        Activity

        Hide
        Uwe Kubosch added a comment -

        Added patch with test and fix.

        Please review.

        Show
        Uwe Kubosch added a comment - Added patch with test and fix. Please review.
        Hide
        Hiro Asari added a comment -

        Applied to master and pushed f58e4e8.

        Thanks, Uwe!

        Show
        Hiro Asari added a comment - Applied to master and pushed f58e4e8. Thanks, Uwe!

          People

          • Assignee:
            Hiro Asari
            Reporter:
            Uwe Kubosch
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: